Search found 118 matches

by olehs
19.08.2012, 15:14
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

EgonHugeist , Nobody missed it be for I guess nobody missed that detection before because it doesn't affect resulting statement, so there is no need to make it optional (at least someone uses tokinizer directly). i'll start with the x''/0x'' for the other Drivers How do you think will be the best? ...
by olehs
18.08.2012, 15:51
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

markus,

Fixed in Zeos7_branches_ testing rev.1652.
by olehs
18.08.2012, 09:24
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

EgonHugeist,

I absolutely agree. E-modifier was just a 'must have' case, because if tokenized incorrectly - it broke the whole query processing.

It would be great to have methods for detecting such states.
by olehs
17.08.2012, 19:08
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

EgonHugeist,

yes, it should be ttQuoted.
I just didn't know how to make it right (how to detect Emp as ttWord, but E'mp' as ttQuoted).
by olehs
15.08.2012, 14:34
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

EgonHugeist,

Sorry, I didn't actually understand your question.

A quoted state is everything in '
'E' is a modifier.
by olehs
05.08.2012, 00:46
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

Oh, this is great! Congratulations!!! :cheers:
by olehs
02.08.2012, 07:53
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Strings like E'\\' are incorrectly tokenized
Replies: 51
Views: 5984

EgonHugeist , can you take a look at the following patch. What do you think about? It gets standard_conforming_strings value from Properties, but if not specified - takes it depending on protocol version (ON - for PG9+). This way user can specify SCS manually, or expect default behaviour for server...
by olehs
30.07.2012, 21:09
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist,
I don't know and didn't expect such a syntax...
It's not a problem, I can add this processing. It's gonna be very useful for DBMS developers etc.
Sure you understand what i mean.
I'm not sure I understand, I need to look deeper...
by olehs
30.07.2012, 18:32
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist , Other possibility is you create a ttWord childstate. "E" is a word state. If you check the next char for "\" or"'" then go on reading and change the result state(dependend on StandartConfirmingStrings). Yes, it's also a good algorythm. But it's only "...
by olehs
30.07.2012, 14:16
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist , and could you please insert some much more complicated tests, with accedend chars like 'üöäü'? that would be great! I'll do it. Do we need now GetServerSetting(), FStandartConfirmingStrings, function EncodeString and so on?? What do you think? Look at test I gave you earlier (procedur...
by olehs
30.07.2012, 13:40
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

I made some tests of it on XE2 & UTF8. Seems to work fine. You only have to make Dest an out or var param.
by olehs
30.07.2012, 12:37
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist , No, actually. When standard_conforming_strings=off or E'syntax is used, then \' is parsed as ' But when standard_conforming_strings=on, \' is parsed as \' backslash_quote controls, whether postgres should allow usage of \' in SCS=off & E'syntax modes or it should raise exception. ...
by olehs
30.07.2012, 12:03
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist,

Yes, you're right. I was talking about IZPostgreSQLTokenizer interface.
I need it to set StandardConformingStrings behaviour.
by olehs
30.07.2012, 11:47
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

EgonHugeist , I'm proceeding with modifying QuoteState tokenizer and I'm gonna need TZPostgreSQLTokenizer back (with a little change). This is a test I made that uses it. procedure TZTestPostgreSQLTokenizer.TestQuoteState; const TokenString1: string = '"a\""\''aa" ''c\'' ''c''''...
by olehs
30.07.2012, 11:36
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82184

miab3,

Maybe you use some special compile settings (optimization=false etc.)