[Lazarus] PostgreSQL database connection error
peng
pengtu321 at gmail.com
Fri May 30 21:54:31 CEST 2008
Look ScreenPrint.
2008/5/30 peng <pengtu321 at gmail.com>:
> 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/20080531/3ce449af/attachment-0007.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Lazarus-Psql-encoding-err.png
Type: image/png
Size: 13998 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080531/3ce449af/attachment-0007.png>
More information about the Lazarus
mailing list