Search found 118 matches

by olehs
30.07.2012, 10:57
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 86149

miab3,

I guess you're right. Methods declared in public interface shouldn't be implemented as private.

Btw, why is it in interface at all?
by olehs
30.07.2012, 10:43
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 6244

EgonHugeist,

I added a testcase for TestStandartConfirmingStrings (rev. 1625). It fails now besause of quotes I asked about.
by olehs
29.07.2012, 20:59
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 6244

EgonHugeist , I fixed QuoteState tokenizer, added support for nested comments in CommentState, added some tests. I also had to remove backslash_quote processing, because it has no effect neither on tokenizing nor on escaping. Now I have 2 questions: First is about GetEscapeString. Strings starting ...
by olehs
28.07.2012, 10:05
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 86149

Also do i wonder about "Bit" and "varbit". Are they right interpreted?
Yes, they are just strings of 1's and 0's
by olehs
27.07.2012, 13:17
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 6244

EgonHugeist,
But the i got terrible results with the Test-Suites
It happened because of quotting string two times. GetEscapedString applies AnsiQoutedString to result of EncodeString, but EncodeString already added quotes around it.
by olehs
27.07.2012, 10:08
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 86149

EgonHugeist,

Yes, it's clientencoding dependent.
did you setup our testsuites?
I'll do it tonight.
by olehs
26.07.2012, 21:28
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] CheckPostgreSQLError (add support unicode)
Replies: 5
Views: 753

EgonHugeist,

Yes, they depend on ClientEncoding.

Btw, there's bug in rev 1600.
by olehs
26.07.2012, 20:37
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 86149

EgonHugeist,

In PostgreSQLToSQLType(oid and typename version) bpchar(oid=1042) should be treated as char
by olehs
26.07.2012, 18:35
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] CheckPostgreSQLError (add support unicode)
Replies: 5
Views: 753

The problem is back.

Code: Select all

    ErrorMessage := Trim(String(StrPas(PlainDriver.GetErrorMessage(Handle))))
by olehs
26.07.2012, 12:34
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 6244

EgonHugeist , I don't think so. All database special things are easy to handle with the TZConnection.Properties. There i already introduces the Standart_Confirming_Strings value. ): You're right about TZConnection.Properties. But methods I proposed are made for getting and setting current run-time ...
by olehs
26.07.2012, 09:39
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 6244

Ok, I'll try. The first step would be retrieving current standard_conforming_strings setting from the server instead of relying on server version. I also introduced 2 convinience methods for TZPostgreSQLConnection: GetServerSetting & SetServerSetting. I'm not familiar with other drivers, so mayb...
by olehs
25.07.2012, 18:46
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZStoredProc doesn't return any returnValue/set
Replies: 15
Views: 3878

EgonHugeist , What's that for a hack? (; Just something like OutputParamValues[0] := GetPlainDriver.GetValue(QueryHandle, 0, 0); in Statement's update method Can you explain me why did you change it? Well, CreateResultSet returns NativeResultSet instead of CachedResultSet when Statement has ResultS...
by olehs
25.07.2012, 14:39
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZStoredProc doesn't return any returnValue/set
Replies: 15
Views: 3878

EgonHugeist , OK, forget about it. Here is reason why we use TZStoredProcedure at all. We use AutoCommit = True. I need to execute procedure and get it's returnValue. TZQuery.ExecSQL commits transaction but doesn't return a value. TZQuery.Open allows to get out data, but doesn't Commit transaction....
by olehs
25.07.2012, 12:03
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZStoredProc doesn't return any returnValue/set
Replies: 15
Views: 3878

EgonHugeist,

I see. But ASA, Interbase and Oracle drivers do fetch out params. May be Project Manager could accept patches to support ONLY out params (w/o resultsets) for PostgreSQL?
by olehs
25.07.2012, 09:55
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZStoredProc doesn't return any returnValue/set
Replies: 15
Views: 3878

EgonHugeist,

I thought procedures can have both UpdateCount and ResultSet same time, don't they?