Re: [opendbx] [Pharo-users] DBXTypeNotSupoorted with Glorp
Brought to you by:
nose
From: Norbert S. <no...@li...> - 2012-05-06 12:21:39
|
Hi all > Yes, that is what is expected, but in the case of SQLite, the column > type changes to SQLITE_NULL for nulls and that is a problem in > squeakdbx now. I think column datatype should not be stored in the > resultset in the case of sqlite. Other databases don't behave this > way (as far as I can remember), so, overriding moveNext for sqlite > would probably be fine. I've enhanced the way to find out what is the data type of the column even if SQLite3 returns SQLITE_NULL as column type when one row contains a value of NULL. SQLite3 provides a function sqlite3_table_column_metadata() which returns the original column information when SQLite3 is compiled with the marco SQLITE_ENABLE_COLUMN_METADATA (which should usually be the case). The enhancement is available since SVN rev. 362 Norbert |