DBD::PG question

Поиск
Список
Период
Сортировка
От Frank Bax
Тема DBD::PG question
Дата
Msg-id 5.2.1.1.0.20050329072552.0581e2b0@pop6.sympatico.ca
обсуждение исходный текст
Ответы Re: DBD::PG question  (Frank Bax <fbax@sympatico.ca>)
Re: DBD::PG question  (Greg Stark <gsstark@mit.edu>)
Список pgsql-interfaces
In a perl script using DBI and DBD:Pg, I need to drop/create a table:  $dbp->{RaiseError} = 0;  $dbp->do( "DROP TABLE
$table");  $dbp->{RaiseError} = 1;  $dbp->do( "CREATE TABLE $table ..." );
 

If the table does not exist, the "DROP TABLE" produces an error message; 
but script doesn't die because RaiseError was set to zero.  Is there a way 
to suppress this error message and then reset the change so an error in 
create *is* seen?

Frank



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

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: MS Access/ODBC 'ERROR: invalid input syntax fo
Следующее
От: Frank Bax
Дата:
Сообщение: Re: DBD::PG question