l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Dec 23 11:55

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] sqlite + perl - wierd unrecognized token error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] sqlite + perl - wierd unrecognized token error

On Thu, 23 Dec 2004, Peter Jay Salzman wrote:
  DBD::SQLite::db do failed: unrecognized token: ":" at Create_Tables.pm line
  52, <> line 6.

Excerpt from Create_Tables.pm:

     my $dbh = DBI->connect("dbi:SQLite:$table_name");

Statement handle DBI::st=HASH(0x840773c) DESTROY ignored - never set up
       ERROR: 1 'unrecognized token: ":"' (err#0)
In my MySQL connections, I have database=$table_name, not just $table_name. That is a driver specific syntax though, so you may want to check the documentation for your specific driver to see if that is the syntax it expects. Another thing I did when debugging a program was to put the SQL command in a string, print the string, then pass the string to do. Then I could see exactly what was passed to do. You might also want to set the RAISE_ERROR attribute in the connect, so that if that is what is causing the problems, the program will die on that statement. The last line of the debug code makes me think the issue is with the connect statements, not the do statements.
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!