Displaying 1 result from an estimated 1 matches for "sponsor_sponsor_key_seq".
2005 Dec 22
2
nonstandard postgresql sequence names
...ture with unremarkable contents.
When I try and run the test I get this:
Loaded suite test/unit/sponsor_test
Started
EWARNING: there is no transaction in progress
E
Finished in 0.831961 seconds.
1) Error:
test_truth(SponsorTest):
ActiveRecord::StatementInvalid: PGError: ERROR: relation
"sponsor_sponsor_key_seq" does not exist
: SELECT setval(''sponsor_sponsor_key_seq'', (SELECT
COALESCE(MAX(sponsor_key), 0)+1 FROM sponsor), false)
[...]
It looks like the code in fixture.rb hardcodes an assumption about
sequence names. Any way that could be parameterized?
--
Posted via http://ww...