Nearly a month ago, I had 200 odd steps happily passing. I upgraded
Cucumber from 0.1.16 to 0.3.11 and Rails from 2.0.1 to 2.3.2 and have
had a nightmare since - I've had to reinstall operating system!
Now when I run I single feature (or a number) I get the error:
Mysql::Error: SAVEPOINT active_record_1 does not exist: ROLLBACK TO
SAVEPOINT active_record_1 (ActiveRecord::StatementInvalid)
Mike
Too late to tell what happened during the upgrade, I have a
reinstalled leopard now. I am just keen to be able to run all my
cucumber features at once rather than one at a time.
Sincere thanks for your replies,
Mike
In your Rails environment file that you use for cucumber do you have
cache_classes set to true or false? It should be set to true for
Cucumber's rollbacks to work properly. When you upgraded cucumber did
you rerun the 'cucumber' generator? It now ships with it's own Rails
env to avoid the cache_classes problem.
-Ben
Well, yeah. DDL statements (data definition, such as altering tables)
are not transactional. I'm not a MySQL expert, but in _most_ SQL
databases doing anything like that will commit your transaction
immediately.
What I'm curious about is: *WHY* in the name of all gods little-endian
and big-endian are you resetting your ID counter in the middle of a
Rails workflow? Why do you *care* what the ID values are? Are you
afraid you'll run out of numbers?
This isn't a necessary step. If you feel it is, or are truly in a
situation where it is, you've almost certainly managed to make
something too complicated.
--
Have Fun,
Steve Eley (sfe...@gmail.com)
ESCAPE POD - The Science Fiction Podcast Magazine
http://www.escapepod.org