[Opensource] DBObjects, postgres and backslash
Vincent Gogan
vincent.gogan at goganinc.com
Fri Nov 15 07:40:56 PST 2002
I'll preface my question with the fact that I am still using 4.02 until things
are stable (in my application). If this is solved in 5, just let me know.
Anyway, I was wondering how to deal with backslashes. Postgres treats a
backslash
as an escape character but I just want to store them in the database. I
overrode
setField(String, String) to do the necessary escaping and it seems to work when
storing the values.... but it seems that setField() is also called internally
when reading the database object.
This adds an additional backslash for every one stored.
I remember seeing some earlier email talking about sql insertion but I don't
think
it answered this question.
Thanks,
Vincent
More information about the Opensource
mailing list