Grokbase
Topics Posts Groups | in
x
[ help ]

[Dbix-class] User error? SQLite problem? with DBIx::Class::Fixtures and populate

View PostFlat  Thread  Threaded | < Prev
Jonathan Rockway [Dbix-class] User error? SQLite problem? with DBIx::Class::Fixtures and populate
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* On Tue, Oct 07 2008, Ashley wrote:
> I'm messing around with writing some tests with DBIx::Class::Fixtures
> and getting stuck. Trying to see if it's something obvious I'm doing
> wrong or there is currently an sqlite problem. The code below runs
> fine except the final step: $fixtures->populate. This is the error it
> gives-
>
> SQL was:
>  DROP TABLE account
> DBIx::Class::Fixtures::populate(): DBI Exception: DBD::SQLite::db do
> failed: no such table: account(1) at dbdimp.c line 271 [for Statement
> "DROP TABLE account"] at ./fixture-test.pl line 40
> 1..2
>
> There is a table "account" and it's in the MyApp-Test-Schema-1-
> SQLite.sql as well as the dumped $schema object. My DBIC modules are
> all current.

FWIW, this is the sort of message you'd get if you typo'd the filename
of your database.

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"

Thread : [Dbix-class] User error? SQLite problem? with DBIx::Class::Fixtures and populate
1)
apv I'm messing around with writing some tests with DBIx::Class::Fixtures and getting stuck. Trying to...
2)
luke saunders OP That's pretty weird. Could you please send me your MyApp-Test-Schema-1-SQLite.sql file? Or...
3)
luke saunders te: ROP ly Your call to create_ddl_dir is producing an SQL file with this: DROP TABLE account;...
4)
luke saunders Sorry for the double reply, but I foolishly sent the last email with 'rich formatting', which isn't...
5)
Jonathan Rockway FWIW, this is the sort of message you'd get if you typo'd the filename of your database. Regards,...
spacer
View PostFlat  Thread  Threaded | < Prev