Re: ERROR: unterminated quoted string... help

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: ERROR: unterminated quoted string... help
Дата
Msg-id 1116354432.22291.136.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на ERROR: unterminated quoted string... help  (Postgres Admin <postgres@productivitymedia.com>)
Ответы Re: ERROR: unterminated quoted string... help
Список pgsql-sql
On Tue, 2005-05-17 at 13:15, Postgres Admin wrote:
> Hi
>
> I'm trying to insert encrypted data into the database and I'm noticing
> error dealing with quotes. Below is the error print out...
>
> suggestions and/or at least point me in the direction to find a solution,
>
> Thanks,
> J
>
>
>
> INSERT INTO sample.users (user_name, first_name) VALUES
> ('jokers', '=ïµiF!¶6(ÖŸã¾óˆÌ‘'-Iw‰iDÖiJÐÿ† %')
>
> Warning: pg_query() [function.pg-query]: Query failed: ERROR:
> unterminated quoted string at or near "'=ïµi" at character 68 in
> /usr/local/apache2/htdocs/php/5/Theirry_DB.php on line 162

Use a bytea field and use pg_escape_bytea() to prepare the data for
insertion.


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

Предыдущее
От: Jay Parker
Дата:
Сообщение: Re: triggering an external action
Следующее
От: Postgres Admin
Дата:
Сообщение: Re: ERROR: unterminated quoted string... help