inserting bytea using PHPs pg_escape_bytea()

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема inserting bytea using PHPs pg_escape_bytea()
Дата
Msg-id CABeG9LtR1YECFV5xDvMCW3sRpSH95N=8Ru6Os_kd+FUnENQZHg@mail.gmail.com
обсуждение исходный текст
Ответы Re: inserting bytea using PHPs pg_escape_bytea()
Список pgsql-general
I have some scripts that upload some images to the DB, specifically to
a bytea column. For that I use PHPs (all scripts are in PHP)
pg_escape_bytea (and pg_unescape_bytea after extraction) before
inserting. Images go good in the DB and are shown correctly after
extraction, so it looks like there is no problem at all.

The only concern I have is that on insertion, I get this WARNING:

WARNING:  nonstandard use of \\ in a string literal at character 41
HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.

Should I worry? What does it mean?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Recovery from Archive files
Следующее
От: Bob Hatfield
Дата:
Сообщение: Re: Are file system level differential/incremental backups possible?