Page 1 of 1

error parse -- comment

Posted: 04.02.2016, 11:57
by alexs75

Code: Select all

Lazarus 1.7 r51494M FPC 3.1.1 x86_64-linux-gtk 2

Code: Select all

>svn info
Path: .
URL: http://svn.code.sf.net/p/zeoslib/code-0/trunk
Relative URL: ^/trunk
Repository Root: http://svn.code.sf.net/p/zeoslib/code-0
Repository UUID: d681b350-854c-439c-a81d-c0ce20710203
Revision: 3806
Node Kind: directory
Schedule: normal
Last Changed Author: egonhugeist
Last Changed Rev: 3800
Last Changed Date: 2016-02-02 13:58:20 +0300 (Вт, 02 фев 2016)
i'm connect to postgre sql server
if in query i'm use "--" for coment - i'm see error

I think that the problem is as follows:
TZSQLStrings.RebuildAll called before set the property TZDataset.Connection

and function TZSQLStrings.GetTokenizer returns TZGenericSQLTokenizer instead TZPostgreSQLTokenizer

Re: error parse -- comment

Posted: 06.02.2016, 13:20
by miab3
Actually.
The problem is ":" after the comment.

Michal

Re: error parse -- comment

Posted: 08.02.2016, 17:49
by EgonHugeist
I'll check out what's going on..

Re: error parse -- comment

Posted: 09.02.2016, 05:36
by EgonHugeist
Hi Alex,

i got the nasty bugga. Can you test and confirm it?

Patch done R3826 \testing-7.2 (SVN)

Re: error parse -- comment

Posted: 10.02.2016, 12:54
by alexs75
work ok.