Hello,
I just downloaded from SVN (trunk) and installed zeos db components to Deplhi XE2. It works but all fields defined as TEXT in sqlite database has in dbeEdit fields "widememo" text and not the correct value. Anyone knows what could be wrong, please?
Thank you!
Petr
Widememo in dbEdit Delphi XE2, SQLite3
Moderators: gto, EgonHugeist, olehs
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
PetrHL,
that's why TEXT means unlimited size. We can't determine a FieldBufferSize for TEXT in this case. So we load TEST as StringStream. This is a proplem of the lazy SQLite affinity:
http://www.sqlite.org/datatype3.html
The DataSets of Delphi/FPC need a fixed Buffersize for StringFields. But which size is correct for TEXT?
Simply declare the stringfields a VARCHAR(100) and you will have TWideString Fields instead... Just have a look to this link.
that's why TEXT means unlimited size. We can't determine a FieldBufferSize for TEXT in this case. So we load TEST as StringStream. This is a proplem of the lazy SQLite affinity:
http://www.sqlite.org/datatype3.html
The DataSets of Delphi/FPC need a fixed Buffersize for StringFields. But which size is correct for TEXT?
Simply declare the stringfields a VARCHAR(100) and you will have TWideString Fields instead... Just have a look to this link.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
miab3,
hm nope, that's a small patch. It would only work in the TZConnection.Properties. But how do you want to mange WANTED TEXT(memo) fields if such an option is available?
hm nope, that's a small patch. It would only work in the TZConnection.Properties. But how do you want to mange WANTED TEXT(memo) fields if such an option is available?
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/