Hi there!,

    I did some research regarding my post:

    http://lists.radiantcms.org/pipermail/radiant/2007-June/005165.html

    In summary the problem is that i get an exception in
app/views/admin/page/edit.rhtml when calling
"filter_reference(default_filter_name)":

---- 8< ----
  <div class="popup" id="filter-reference-popup" style="display:none;">
    <h3><span id="filter-type"><%= default_filter_name %></span> Reference</h3>
    <div id="filter-reference"><%=
filter_reference(default_filter_name) %></div>
    <p><%= link_to_function 'Close',
"Element.hide('filter-reference-popup')", :class => 'close-link'
%></p>
  </div>
---- 8< ----

     After some debugging i found that in my sqlite3 database, fields
of type "string" have a weird default value in the schema, and not a
default NULL value.  This is for all tables.

    For example this is the schema for the table "page_parts" reported
by sqlite3:

CREATE TABLE page_parts ("id" INTEGER PRIMARY KEY NOT NULL, "name"
varchar(100) DEFAULT '''NULL''', "filter_id" varchar(25) DEFAULT
'''NULL''', "content" text DEFAULT '''NULL''', "page_id" integer
DEFAULT 0);

   The default value is the string "'NULL'" or whatever, but not the
raw NULL value.  I have verified this in the rails console and with
rdebug.

   This is what is causing me problems + other strange behaviors.

   Did someone have this problem with sqlite3?  It's a problem of my
sqlite3 bindings?

   /AITOR
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to