Backward slash (\) problem
Moderators: EgonHugeist, mdaems
-
- Fresh Boarder
- Posts: 4
- Joined: 13.11.2006, 13:18
Backward slash (\) problem
Hi folks! I have the following situation:
Unless I have stored in the database field double backwards slashes, TZQuery will return no \'s at all in myQuery.FieldByName('mycolumn').AsString...
Ex.:
Content of "mycolumn" stored in the database: "\\server\html\index.html" -> myQuery.FieldByName('mycolumn').AsString returns "\serverhtmlindex.html"
...is anybody facing the same problem? People from Zeos Team is aware of this? Is there any solution?
My systems wont work if this is not working.
Thanks in advance,
Daniel Weinmann
Unless I have stored in the database field double backwards slashes, TZQuery will return no \'s at all in myQuery.FieldByName('mycolumn').AsString...
Ex.:
Content of "mycolumn" stored in the database: "\\server\html\index.html" -> myQuery.FieldByName('mycolumn').AsString returns "\serverhtmlindex.html"
...is anybody facing the same problem? People from Zeos Team is aware of this? Is there any solution?
My systems wont work if this is not working.
Thanks in advance,
Daniel Weinmann
-
- Fresh Boarder
- Posts: 4
- Joined: 13.11.2006, 13:18
-
- Fresh Boarder
- Posts: 4
- Joined: 13.11.2006, 13:18
...I did make it work now...but...
it is only working when I set myTZConnection.Protocol to "postgresql-7", even if I am using PostgreSQL 8.2.
I've tryed with myTZConnection.Protocol = "postgresql" and myTZConnection.Protocol = "postgresql-8". And it really only works with "postgresql-7" protocol.
Is it a bug or is it normal?
Thanks!
Daniel Weinmann
it is only working when I set myTZConnection.Protocol to "postgresql-7", even if I am using PostgreSQL 8.2.
I've tryed with myTZConnection.Protocol = "postgresql" and myTZConnection.Protocol = "postgresql-8". And it really only works with "postgresql-7" protocol.
Is it a bug or is it normal?
Thanks!
Daniel Weinmann
-
- Fresh Boarder
- Posts: 4
- Joined: 13.11.2006, 13:18
The only thing I did was changing myTZConnection.Protocol from "postgresql" to "postgresql-7". I also tryed to change it to "postgresql-8", but it didn't work.
I think it is PostgreSQL related, indeed. But I believe it is a PostgreSQL X Zeos 6.6.0beta issue, cause with older versions of Zeos (5.3.4) it was working fine...
...thanks a lot.
Daniel Weinmann
I think it is PostgreSQL related, indeed. But I believe it is a PostgreSQL X Zeos 6.6.0beta issue, cause with older versions of Zeos (5.3.4) it was working fine...
...thanks a lot.
Daniel Weinmann
Re: [bug_report] Backward slash (\) problem
I just tried "/branches/testing" revision 188 but did not see this problem.danielweinmann wrote:Content of "mycolumn" stored in the database: "\\server\html\index.html" -> myQuery.FieldByName('mycolumn').AsString returns "\serverhtmlindex.html"
I used postgresql-8 and saved string "C:\\a\b\c.txt" in varchar column and successfully retrieved the same string from it.
String "\\a\b\c.txt" is good, too.
Regards,
CN