I'm using the DBD::pg to work with my PostgreSQL server from my perl script. One of the columns in my database is using the Serial datatype to have the value auto incremented by Postgre. The way that I am currently working with it is by sending it a blank value
$compid = q[]but that produces this error from Postgre
DBD::Pg::db do failed: ERROR: invalid input syntax for integer: "" at repairs.pl line 352, <> line 20. Error: could not insert data into database: ERROR: invalid input syntax for integer: "" at repairs.pl line 366 main::db_add_computer('probdesc', 'n/a', 'compid', '', 'custid', '000-000000', 'service', 'n/a', 'compsn', ...) called at repairs.pl line 280 main::print_form() called at repairs.pl line 106
Anyone know what I am doing wrong here? If not then I can try asking in the IRC channel for PostgreSQL
In reply to Working with Postgresql serial data type in Perl by vendion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |