Hi,

SQLite per se is typeless that means the following create statement is valid:
create table temp(
        field1 i_do_not_think_this_is_an_sql_data_type,
      field2 int,
      field3 moon
);

and SQLite will return this as field the field info.
0|field1|i_do_not_think_this_is_an_sql_data_type|0||0
1|field2|int|0||0
2|field3|moon|0||0

The reason I brind this up is that getFields will be hard if not impossible to implement unless we enforce, per definition, datatypes that the dabo SQLite implementation understands.

The getFields thing came up because the sqlite cursor doesn't fill cursor.description, so that when you call dForm.new(), cursormixin.setDefaults raises a ValueError "Can't set default value for nonexistent field '%s'." So I thought about using getFields to return the Field information for SQLite.

Any ideas?

adi


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to