how do i insert an empty string ?

Поиск
Список
Период
Сортировка
От Peter Galbavy
Тема how do i insert an empty string ?
Дата
Msg-id 000901c27431$e02a8e20$4528a8c0@cblan.mblox.com
обсуждение исходный текст
Ответы Re: how do i insert an empty string ?
Список pgsql-sql
FAQ: A search yielded nothing explicit...

I have an INSERT statement:

INSERT INTO metadata (md5, origin, name, value)             VALUES ('fd859f263bd0579935f2146a22d24f32', 'EXIF',
'UserComment', '')

but this fails (using Perl DBI, DBD::Pg) because $dbh->quote() returns two
single quotes, which fails because something along the way thinks this is a
single quote. I do NOT want to insert a NULL but an empty string...

(This is either doing a $dbh->do(...) or a prepare ... execute without
$dbh->quote())

Peter



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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Stored procedure returning row or resultset
Следующее
От: "Peter Galbavy"
Дата:
Сообщение: Re: how do i insert an empty string ?