Le 20/08/13 07:54, mhaverin a écrit :
Hi, > It doesn't seem to work. I tried SELECT "col1" FROM "tbl1" WHERE "col2" = :x > and just got a bunch of errors (listed below). I did some googling already > but didn't find anything yet. I have some actual work that has to be done so > I'm going to have to return to this a little later. Thanks for the tip! > Did you try switching the SQL button (ESCAPE_PROCESSING) on/off and running the query again ? For example, this works for me from the "Create a Query in SQL mode" window with : - an embedded HSQLDB - a mysqldb connected over the mysql JDBC connector driver - a mysqldb connected over a native mysql C connector driver However, in order for it to work, I have to have the SQL button not pressed, i.e. ESCAPE_PROCESSING is turned off. If I activate the direct SQL execution using the db engine's own SQL parser, the parameterized query fails (at least on mysql). The answer to your problem may (hopefully) simply lie in turning ESCAPE_PROCESSING "off" in your Basic routine. If that doesn't work, then there is probably some kind of problem with the driver code that LO uses. http://api.libreoffice.org/docs/common/ref/com/sun/star/sdb/QueryDefinition.html Alex -- To unsubscribe e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
