Problem with sqlite blob encoding

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
maciejkaczkowski
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 06.09.2005, 19:10

Problem with sqlite blob encoding

Post by maciejkaczkowski »

Based on documentaction http://www.sqlite.org/datatype3.html SQLite allow to insert blob file using hex encoding (x character before string), i.e.:

Code: Select all

INSERT INTO t1 VALUES(x'0500', x'0500', x'0500', x'0500', x'0500');
after executing above example i've got error
unrecognized token: x'0500'

is there any solution to skip parser and send query directly to sqlite engine?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

What does zeoslib make from your insert statement when sending it to SQLite? You can use a TZSQLMonitor to find that out.
Seems to me the error comes from SQLite itself. because of a syntax error?

Mark
Image
maciejkaczkowski
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 06.09.2005, 19:10

Post by maciejkaczkowski »

What does zeoslib make from your insert statement when sending it to SQLite? You can use a TZSQLMonitor to find that out.
not mentioned before that I use TZSQLProcessor to handle instert statement.
Seems to me the error comes from SQLite itself. because of a syntax error?
I've solved that issues using TZQuery - works fine.
Post Reply