jtdaugherty / dbmigrations-mysql Goto Github PK
View Code? Open in Web Editor NEWThis is the MySQL support package for dbmigrations.
License: Other
This is the MySQL support package for dbmigrations.
License: Other
The test applyMigrationSuccess
fails with the following error:
ConnectionError {errFunction = "query", errNumber = 1064, errMessage = "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE valid2 (a int)' at line 1"}
Cases: 1 Tried: 1 Errors: 1 Failures: 0
At first I though that maybe the way the applyMigration function is implemented is not capable of executing a migration that contains multiple statements (separated by a semicolon) because the test passes if one removes the second "CREATE TABLE" statement (and the corresponding expectation from the check for installed tables) from the migration that is constructed in this test. This can't be the whole truth, though, because having multiple statements in one migration works fine when using moo-mysql
. I did not investigate further.
Another aspect that is maybe worth noting: I suspect this test never actually ran successfully, because the way BackendTest.hs is implemented it stops on the first test failure without even attempting the to run the rest of the tests. applyMigrationFailure
always failed, so most of the tests probably never ran at all. This is backed up by the fact that revertMigrationFailure
and revertMigrationNothing
also failed once the other test failures were removed. Those failed with
### Error in: 0:MySQL backend tests
QueryError {qeMessage = "execute resulted in 1-column result", qeQuery = "SELECT 1"}
Cases: 1 Tried: 1 Errors: 1 Failures: 0
because apparently the SELECT 1
or similar that were meant to act as a noop caused a problem with a result that was left unconsumed, see commit 3cdb029c5ad09517b199a2ede5a956fc76426da3
for a proper MySQL noop.
(In retrospect, it might have been a good idea to remove the known failing test case right from the start).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.