Search found 6 matches
- 12.09.2016, 20:22
- Forum: ZeosLib 7.2 Forum
- Topic: Problems with the "\" character
- Replies: 6
- Views: 947
Re: Problems with the "\" character
Hello, You didn't write what database server do you use. I had the same problem. I found solution for PostgreSQL. There have to be made changes in ZPostgreSqlToken.pas: procedure TZPostgreSQLQuoteState.GetQuotedString(Stream: TStream; QuoteChar: Char; EscapeSyntax: Boolean; var Result: String); cons...
- 12.09.2016, 20:18
- Forum: ZeosLib 7.2 Forum
- Topic: Parameter Not Found
- Replies: 10
- Views: 3006
Re: Parameter Not Found
OK, here is a solution for PostgreSQL. There have to be made changes in ZPostgreSqlToken.pas: procedure TZPostgreSQLQuoteState.GetQuotedString(Stream: TStream; QuoteChar: Char; EscapeSyntax: Boolean; var Result: String); const BackSlash = Char('\'); var ReadChar: Char; LastChar: Char; QuoteCount: In...
- 11.09.2016, 14:45
- Forum: ZeosLib 7.2 Forum
- Topic: Parameter Not Found
- Replies: 10
- Views: 3006
Re: Parameter Not Found
Found it. It's not about nested brackets. It's a problem with escape character "\". Examples (for PostgreSQL): SQL.Text:='select field1|| ''\\n'' ||field2 from tab where 1=1 and (field3 iLike :param)'; Everything is OK with Params but I get "\n" string in the result text. SQL.Tex...
- 11.09.2016, 13:57
- Forum: ZeosLib 7.2 Forum
- Topic: Parameter Not Found
- Replies: 10
- Views: 3006
Re: Parameter Not Found
I have the same problem with version 7.2 3929. Or maybe not the same but I have the same error. For "and (I.nazwa iLike :nazwaFiltr)" everything works fine, but for "'and ((B.nazwa iLike :nazwaFiltr) or (B.skrot iLike :nazwaFiltr)) '" I've got "Parameter not found". May...
- 18.05.2010, 08:17
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Strange characters after using join with parenthesis
- Replies: 3
- Views: 495
- 14.05.2010, 12:08
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Strange characters after using join with parenthesis
- Replies: 3
- Views: 495
Strange characters after using join with parenthesis
I'm using ZeosLib (rev 806) with Delphi 2010 and PostgreSQL 8.4.3. I've noticed strange behaviour during using joins in queries. Fields of "text" type shows strange characters when I use parenthesis with join in query. Example: select SR.*,STA.opis as status_opis, R.nazwa as rodzaj,P.data_...