SA Bugzilla – Bug 3457
[review] BayesSQL tests do not function properly for MySQL < 4.1
Last modified: 2004-06-02 14:38:45 UTC
The bayessql.t tests use a sub-select to delete the test data from the database. Using on a version < 4.1 causes an error.
Needs to be fixed for 3.0.0
Created attachment 1990 [details] Patch File
Fixed, please review attached patch and provide +1s and I'll commit.
+1 so far. But maybe you should add another final SELECT to see if clear_database() really emptied the table (ie. there's no bug in the clear routine).
+1 on that -- agree with Malte though that an extra step to check would be nice
Created attachment 1991 [details] Patch File New patch file that adds a test to make sure clear_database actually cleared the database. It's not as clean as I'd like it but works and I plan to change the SQL code for 3.1.0 to allow it to be much cleaner. Please review again.
+1, I like it ;) (BTW, if you ask me, breaking abstraction in the test suite is fine, as long as it's the test suite bundled with the code in the first place.)
+1 on 1991 -- I can't actually test it but it looks cool :)
Committed revision 20771