We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367fdae commit 061dc11Copy full SHA for 061dc11
jones-mysql/test/temporaltypes/TypeTest.js
@@ -203,15 +203,15 @@ t11.run = function() {
203
};
204
205
// cYear
206
-// Error 22007 on attempt to store string "" in year column
+// Error on attempt to store string "" in year column
207
var t12 = new harness.ConcurrentTest("VerifyEmptyStringYear");
208
t12.run = function() {
209
var data = new TestData(22);
210
data.cYear = "";
211
- var verifier = new ErrorVerifier(this, "22007");
212
fail_openSession(this, function(session) {
213
session.persist(data, function(err) {
214
- verifier.run(err);
+ t12.errorIfUnset("Expected error", err);
+ t12.failOnError();
215
});
216
217
0 commit comments