Skip Menu |

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 112908
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: JIRA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



On Thu Mar 10 21:34:14 2016, JIRA wrote: Show quoted text
> I ran into an issue with mod_perl and DBD::SQLite. > I used the following query to check whether table exists > "SELECT name FROM sqlite_master WHERE type='table' AND name='data'" > > Under mod_perl it will return nothing even though the table does > exist. Without > mod_perl it returns correct result
Not sure what's actually going on from what you've written here, but could you check the following first? 1) if you connect to the database you expect (by specifying a full path to the database file) 2) if DBI/DBD::SQLite are loaded correctly, and have the expected version
Dne 2016-03-10 07:58:49, ISHIGAKI napsal(a):
Show quoted text
> On Thu Mar 10 21:34:14 2016, JIRA wrote:
> > I ran into an issue with mod_perl and DBD::SQLite.
> > I used the following query to check whether table exists
> > "SELECT name FROM sqlite_master WHERE type='table' AND name='data'"
> >
> > Under mod_perl it will return nothing even though the table does
> > exist. Without
> > mod_perl it returns correct result
>
>
> Not sure what's actually going on from what you've written here, but
> could you check the following first?
>
> 1) if you connect to the database you expect (by specifying a full
> path to the database file)
>
> 2) if DBI/DBD::SQLite are loaded correctly, and have the expected
> version

Never mind. Figured it out. I had my sql queries stored in __DATA__ section and was reading them using Data::Section::Simple.
That doesn't work under mod_perl.




On Fri Mar 11 04:05:01 2016, JIRA wrote: Show quoted text
> Dne 2016-03-10 07:58:49, ISHIGAKI napsal(a):
> > On Thu Mar 10 21:34:14 2016, JIRA wrote:
> > > I ran into an issue with mod_perl and DBD::SQLite. > > > I used the following query to check whether table exists > > > "SELECT name FROM sqlite_master WHERE type='table' AND name='data'" > > > > > > Under mod_perl it will return nothing even though the table does > > > exist. Without > > > mod_perl it returns correct result
> > > > > > Not sure what's actually going on from what you've written here, but > > could you check the following first? > > > > 1) if you connect to the database you expect (by specifying a full > > path to the database file) > > > > 2) if DBI/DBD::SQLite are loaded correctly, and have the expected > > version
> > Never mind. Figured it out. I had my sql queries stored in __DATA__ > section and > was reading them using Data::Section::Simple. > That doesn't work under mod_perl.
OK. Closed.