Cnliou,
Thank you very much - it's works!
By the way: it's sad to said but PostgresQL team since few versions doesn't take care about previous version compatibility, remember enabling strong type checking in 8.xx?
Thank you once again!
Search found 22 matches
- 03.11.2011, 11:13
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
- 02.11.2011, 11:45
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
- 02.11.2011, 11:35
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
I've tested this code against MySQL 5.1 working on Linux server (withe the sdame client written in DelphiXE running on Windows XP) and everything works fine. So it looks like it's Postgres releated problem. Just too be sure I'll test it with sqlite and then will start digging in the code looking for...
- 01.11.2011, 17:55
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
Well, as I've wrote above: query works fine and inserts data without any errors or warnings. The problem is that when I use ParamByName the apostrophs inside the parameter string are not quoted as double apostrophe ('' ) but as ASCII literal: '\047' (just four ASCII chars, not char with \047 code!)....
- 01.11.2011, 16:30
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
- 01.11.2011, 13:47
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
OK, the following code is the minimal code example to reproduce bug in ParamByName: junk := 'aaa''aaa'; sql.sql.Clear; sql.sql.Add('insert into dziennik(login,wpis,data) values ('+quotedstr(junk)+', :WPIS, NOW())'); sql.Prepare; sql.ParamByName('WPIS').AsString := junk; sql.ExecSQL; Inserting string...
- 01.11.2011, 12:54
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
- 30.10.2011, 18:15
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1815
SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Hello, I've got PostgresQL 9.1 running on Linux machine, and I'm connecting to it using Delphi XE with Zeos 7.0.0-dev. My Database works in UTF8, additionally I'm setting the following properities in TZConnection: con.Properties.Add('codepage=utf8'); con.Properties.Add('lc_all=Polish_Poland.utf8'); ...
- 29.09.2011, 17:33
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Zeos 7 Alpha and Delphi 2009 Support - Official Thread
- Replies: 97
- Views: 29158
- 23.06.2011, 12:06
- Forum: PostgreSQL
- Topic: Error code/error message from TZConnection with Postgres
- Replies: 2
- Views: 1740
- 21.06.2011, 11:33
- Forum: PostgreSQL
- Topic: Error code/error message from TZConnection with Postgres
- Replies: 2
- Views: 1740
Error code/error message from TZConnection with Postgres
Hello, I'm connecting to Postgres 8.4 database which sometimes is unavailable. I've no problem with servicing such a situation with 'try ... .finally' however I'm unable to find TZConection's property which hold potential error number or error message (like pg_last_error or pg_result_error in PHP). ...
- 06.10.2007, 19:42
- Forum: Off Topic
- Topic: One ZConnection and many data aware components?
- Replies: 8
- Views: 27925
- 06.10.2007, 18:56
- Forum: Off Topic
- Topic: One ZConnection and many data aware components?
- Replies: 8
- Views: 27925
- 06.10.2007, 09:46
- Forum: Off Topic
- Topic: One ZConnection and many data aware components?
- Replies: 8
- Views: 27925
One ZConnection and many data aware components?
Hello, I've finished coding stored procedures in my database and now it's time for user interface. I'm coding it in Delphi 7 with (surprise!) ZeosLib ;-) The question is: which model is better from the performance and interoperability point of view? 1) One TZconnection component on the form, reused ...
- 13.09.2007, 18:56
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Serious TZTable problem with (possible) soullution
- Replies: 4
- Views: 1627