Still have problem with single quotation mark

Поиск
Список
Период
Сортировка
От theofilu@eunet.at (Theofilu Andreas)
Тема Still have problem with single quotation mark
Дата
Msg-id 199909132011.WAA07963@eunet.at
обсуждение исходный текст
Ответы Re: [INTERFACES] Still have problem with single quotation mark  (Michael Meskes <meskes@postgreSQL.org>)
Список pgsql-interfaces
Hi to all,

There is still a problem with the single quotation mark (') inside a
string, when this string is inserted into the database and one uses 'ecpg'.
Someone on this list told me, that I should precede a ' with a second '
(''). Then it would not be interpreted as the end of string. I did this and
realy, now it is not interpreted at all. 'ecpg' puts now both quotation
marks into the database table. This makes for example the words 'I don't
want this' appear as 'I don''t want this'. Preceding the quotation mark
with a backslash does not help also. Then I get the SQL error 'too many
arguments in line xxx'. This is really annoying. How can I fix this?


--
Theofilu Andreas
http://members.eunet.at/theofilu
              -------------------------------------------------                          Enjoy the science of Linux!
                 Genieße die Wissenschaft von Linux!              -------------------------------------------------
 


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Christoph Steinbeck
Дата:
Сообщение: JDBC and getting just assigned serial number
Следующее
От: Michael Wentzel
Дата:
Сообщение: RE: [INTERFACES] Still have problem with single quotation mark