[CDBI] Can't insert a null record?

Perrin Harkins perrin at elem.com
Thu Aug 3 17:37:24 BST 2006


On Wed, 1969-12-31 at 23:59 +0000, Eduardo Grosclaude wrote:
> Error executing run mode 'dic': Can't insert new Ctl::Dictado:
> DBD::SQLite::db prepare_cached failed: near ")": syntax error(1) at
> dbdimp.c line 269 [for Statement "INSERT INTO dictado ()
> VALUES ()
> "] at /usr/lib/perl5/site_perl/5.8.6/Ima/DBI.pm line 381.
>  at /var/www/html/linux/admin/admin.pl line 256
>  at /usr/lib/perl5/site_perl/5.8.6/CGI/Application.pm line 160
>     CGI::Application::run('Admin=HASH(0x9650de8)') called
> at /var/www/html/linux/admin/admin.pl line 517

I don't use SQLite or Class::DBI 3.0.14, but that error looks like it
doesn't know what your columns are.  Check how you defined the columns
and make sure it knows its primary key.

- Perrin




More information about the ClassDBI mailing list