Quoting Error?

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
jascha
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 14.10.2005, 14:31
Location: Füssen
Contact:

Quoting Error?

Post by jascha »

I have a simple TZQuery connected to a sqlite3 db.
The query is "SELECT * FROM page"

Now I want to save the data from a RichEdit into the db:

zqPage.Edit;
zqPage.FieldByName('page_text').AsString:=frmrichedit1.RTFText;
zqPage.Post;

When I execute this I get a EZSQLException. I think its because of the special chars in the RTF Code.

Is this a Bug?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Please,

Try to add a TZSQLMonitor to your application to check what query is sent to the database exactly.

There may be something wrong with the special characters. Other possible reasons may be special column names which need escaping, ...

Mark
Image
Post Reply