diff --git a/lib/discovery.js b/lib/discovery.js index a9cf6c2c..49844862 100644 --- a/lib/discovery.js +++ b/lib/discovery.js @@ -298,6 +298,14 @@ function mixinDiscovery(MySQL, mysql) { return sql; }; + /** + * Build query to determine is strict mode + */ + + MySQL.prototype.buildQueryIsStrict = function() { + return "SELECT @@SESSION.sql_mode LIKE '%STRICT%' AS strictMode;"; + }; + /** * Discover foreign keys that reference to the primary key of this table * @param {String} table The table name