Library used incorrectly - comment in query

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
m227
Posts: 59
Joined: Mon 06 Aug 2007 12:41

Library used incorrectly - comment in query

Post by m227 » Wed 30 Dec 2015 15:39

Dear Sirs,

I have TLiteQuery with some SQL commands. When I add a SQL comment like

Code: Select all

/* some comment */
and I execute query i get error:
Library used incorrectly
Is it a bug or it is default behaviour?

m227
Posts: 59
Joined: Mon 06 Aug 2007 12:41

Re: Library used incorrectly - comment in query

Post by m227 » Tue 05 Jan 2016 11:09

I resolved it myself, the error "Library used incorrectly" is quite clear. To run some queries I need to use TLiteScript - not TLiteQuery, and there I could put remarks with no problem.
Michal

MaximG
Devart Team
Posts: 1019
Joined: Mon 06 Jul 2015 11:34

Re: Library used incorrectly - comment in query

Post by MaximG » Wed 06 Jan 2016 14:09

We are happy that the issue has been resolved. If you can not execute multiple SQL-statements containing style comments / * ... * /, send us the text of the script to maximg * devart * com

Post Reply