Search found 31 matches
- 10.05.2013, 09:57
- Forum: User Patches
- Topic: Patch to 6.6.6 fixing single quote becoming \047
- Replies: 0
- Views: 1865
Patch to 6.6.6 fixing single quote becoming \047
Newer versions of PostgreSQL appears to handle escape syntax differently from older ones. Version 9.2 takes literals like these two SQL text: INSERT INTO t1 VALUES (E'This is Jim\'s home.') INSERT INTO t1 VALUES (E'This is Jim\047s home.') Take special note on the prefixing character "E"! ...
- 10.11.2011, 14:32
- Forum: User Patches
- Topic: Switching Client Encoding for PostgreSQL
- Replies: 7
- Views: 2869
Using the 3 step cast as in the example doesn't work either? - Create IZPostgresSQLConnection object variable - Assign this variable a value by casting - Use the var->SetCodePage() function. No, this can't compile: IZPostgreSQLConnection *c=static_cast<IZPostgreSQLConnection *>(ZConnection->DbcConn...
- 10.11.2011, 13:32
- Forum: User Patches
- Topic: Switching Client Encoding for PostgreSQL
- Replies: 7
- Views: 2869
- 09.11.2011, 10:12
- Forum: User Patches
- Topic: Switching Client Encoding for PostgreSQL
- Replies: 7
- Views: 2869
It will be fine for myself to make SetCodePage() available only to PostgreSQL. However, I don't know how to directly call zdbc procedures from my application. If you can show me how, I can try exporting SetCodePage() to zdbc instead of TZConnection. I have read http://zeos.firmos.at/kb.php?mode=art...
- 09.11.2011, 03:38
- Forum: User Patches
- Topic: Switching Client Encoding for PostgreSQL
- Replies: 7
- Views: 2869
- 08.11.2011, 15:11
- Forum: PostgreSQL
- Topic: Switching client encoding
- Replies: 2
- Views: 2559
I have fixed the issue and uploaded the patch to:
http://zeos.firmos.at/viewtopic.php?p=13813#13813
Hopefully the patch will be accepted and manually patched by some good soul
http://zeos.firmos.at/viewtopic.php?p=13813#13813
Hopefully the patch will be accepted and manually patched by some good soul
- 08.11.2011, 15:08
- Forum: User Patches
- Topic: Switching Client Encoding for PostgreSQL
- Replies: 7
- Views: 2869
Switching Client Encoding for PostgreSQL
This is the patch to fix the flaw as mentioned by myself at http://zeos.firmos.at/viewtopic.php?p=13794#13794 I have just fixed the flaw and the result looks fine. Summary of the rework: - Ignore entry "codepage=..." in TZConnection.Properties. That is said, setting this entry does not cha...
- 04.11.2011, 08:39
- Forum: PostgreSQL
- Topic: Switching client encoding
- Replies: 2
- Views: 2559
Switching client encoding
Hi! Client encoding is specified in TZConnection.properties such as "codepage=big5". It is then parsed and converted by Create(), and saved as FClientCodePage in ZDbcPostgreSql.pas. Such design works but it has the following flaws: (1) After connected to PostgreSQL, users can send "SE...
- 03.11.2011, 09:16
- Forum: ZeosLib 7.0 Beta Forum
- Topic: SOLVED: TZQuery.ParamByName bug: quoting apostrophe as \047
- Replies: 9
- Views: 1813
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) The following message explains the reason: https://support.zabbix.com/browse/ZBX-4145 Quick and dirty temporary work around is explicitly turning off the followin...
- 22.12.2010, 07:33
- Forum: ZeosLib 7.0 Beta Forum
- Topic: When the ZEOS 7 new version for Delphi 2010 ?
- Replies: 50
- Views: 9415
I still have trouble getting answers for my corner case
At the VCL component level (e.g. TDataSet or TQuery Zeos versions), the type for strings will be the plain Delphi string type. For instance, SQL.Text will expect string type, i.e. UCS2 since Delphi 2009. The UTF-8 encoding will be used only at lower level, i.e. at ZDBC level. All the conversions wi...
- 21.12.2010, 09:41
- Forum: ZeosLib 7.0 Beta Forum
- Topic: When the ZEOS 7 new version for Delphi 2010 ?
- Replies: 50
- Views: 9415
- you've to call our custom UTF8ToString() or StringToUTF8() to convert to/from VCL string type - this will work for Delphi 6 up to XE and is very fast (avoid using Windows API most of the time); Please help me get your point. Zeoslib would not be quite usable if you mean the higher level applicati...
- 21.12.2010, 01:49
- Forum: ZeosLib 7.0 Beta Forum
- Topic: When the ZEOS 7 new version for Delphi 2010 ?
- Replies: 50
- Views: 9415
- 15.12.2010, 03:55
- Forum: ZeosLib 7.0 Beta Forum
- Topic: When the ZEOS 7 new version for Delphi 2010 ?
- Replies: 50
- Views: 9415
I beleive that most of those DBs will convert all data to client encoding before sending it to client (and in the oposite direction convet it from client encoding before storing it). Could this make your job simpler? Then, it does not matter if diferent tables and diferent columns in the base store...
- 11.10.2010, 05:21
- Forum: ZeosLib 7.0 Beta Forum
- Topic: [patch_done] Delphi 2010 + MySQL + UTF8
- Replies: 51
- Views: 14274
- 08.01.2010, 15:08
- Forum: PostgreSQL
- Topic: Password autentication failed for user
- Replies: 1
- Views: 1061