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 858adf3 commit b9b12a3Copy full SHA for b9b12a3
lib/discovery.js
@@ -298,6 +298,15 @@ function mixinDiscovery(MySQL, mysql) {
298
return sql;
299
};
300
301
+
302
+ /**
303
+ * Build query to determine is strict mode
304
+ */
305
306
+ MySQL.prototype.buildQueryIsStrict = function() {
307
+ return "SELECT @@SESSION.sql_mode LIKE '%STRICT%' AS strictMode;";
308
+ };
309
310
/**
311
* Discover foreign keys that reference to the primary key of this table
312
* @param {String} table The table name
@@ -414,4 +423,5 @@ function mixinDiscovery(MySQL, mysql) {
414
423
MySQL.prototype.setNullableProperty = function(r) {
415
424
r.nullable = r.nullable ? 'Y' : 'N';
416
425
426
417
427
}
0 commit comments