[Lazarus] PostgreSQL database connection error

peng pengtu321 at gmail.com
Fri May 30 13:06:48 CEST 2008


Thanks for your answer, but I do not know how to set up
TSQLConnection.ExecuteDirect (......).
TSQLConnnection components in the election, I can not find ExecuteDirect
attributes. Can give me concrete steps ? I am still a novice Lazarus, thank
you!

--
2008/5/30 Joost van der Sluis <joost at cnoc.nl>:

> You should first set the client_encoding with
> 'TSQLConnection.ExecuteDirect('set client_encoding to ''gbk'');'
> Then you can open your query. (Note that you can only change the
> sql-statement of an query when it's closed)
> Joost.
>

-- 
我的'开源办公室':
http://pengtu.net/ooo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080530/f42b97c5/attachment-0007.html>


More information about the Lazarus mailing list