insetion Bytea atrr error!

Поиск
Список
Период
Сортировка
От Mehdi Jabal Ameli
Тема insetion Bytea atrr error!
Дата
Msg-id 000801c21d2b$5be94a50$f42ee1c2@sunset
обсуждение исходный текст
Список pgsql-interfaces
hi,
I want to add jpg file a attr pic that it's type is Bytea in Perl script;
I do following commands:
 
$name='mehdi';
$filename="sh.gif";
open(inp, "$filename") ;
my $INP = join '', <inp>;
close inp;
 
$result=$conn->exec("insert into tablename values ($name,$inp)");
 
but it return error code 7 (PGRES_FATAL_ERROR);
how can I resolve this problem?
Would u help me please?
 
 
Mehdi Jabalameli
jabalameli@ce.sharif.edu
ce.sharif.edu/~jabalameli

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

Предыдущее
От: Nick Haw
Дата:
Сообщение: Views, Access 2000 and write conflicts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Where is PLbash ??