Search found 22 matches

by ccezar
03.11.2011, 11:13
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

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!
by ccezar
02.11.2011, 11:45
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

Confirmed: under Sqlite3 the above code works perfectly giving expected results.
Well, so it looks like it's time to bug hunt for me! 8)
by ccezar
02.11.2011, 11:35
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

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...
by ccezar
01.11.2011, 17:55
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

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!)....
by ccezar
01.11.2011, 16:30
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

Tested also on SVN rev. 956 - same behavior :(
by ccezar
01.11.2011, 13:47
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

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...
by ccezar
01.11.2011, 12:54
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

Any ideas? Patches? Criticism? ;)
by ccezar
30.10.2011, 18:15
Forum: ZeosLib 7.0 Beta Forum
Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
Replies: 9
Views: 1736

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'); ...
by ccezar
29.09.2011, 17:33
Forum: ZeosLib 7.0 Beta Forum
Topic: Zeos 7 Alpha and Delphi 2009 Support - Official Thread
Replies: 97
Views: 28249

Does it mean it's the end of the Zeos project...?
by ccezar
23.06.2011, 12:06
Forum: PostgreSQL
Topic: Error code/error message from TZConnection with Postgres
Replies: 2
Views: 1670

Thank you Wild_Pointer! :)
by ccezar
21.06.2011, 11:33
Forum: PostgreSQL
Topic: Error code/error message from TZConnection with Postgres
Replies: 2
Views: 1670

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). ...
by ccezar
06.10.2007, 19:42
Forum: Off Topic
Topic: One ZConnection and many data aware components?
Replies: 8
Views: 27606

Well, I'm using threads. What will be ZConnection behaviour in this case? Will it be "blocking queue"?
by ccezar
06.10.2007, 18:56
Forum: Off Topic
Topic: One ZConnection and many data aware components?
Replies: 8
Views: 27606

OK. Doesn't it hurt TZconnection performance?
by ccezar
06.10.2007, 09:46
Forum: Off Topic
Topic: One ZConnection and many data aware components?
Replies: 8
Views: 27606

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 ...
by ccezar
13.09.2007, 18:56
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Serious TZTable problem with (possible) soullution
Replies: 4
Views: 1581

Jeah, sure! ;-) But I'm migrating to Zeos quite big BDE based application (162.000 lines of code) and in few places it uses TTable, mainly for data insertion. I'm planning migration to pure-sql, but as for now I must have it up and running ASAP.