Open mihaidma opened 8 years ago
The correct escape char should be defined on the driver level and passed to this module afterwards. E.g. mysql needs to use ` instead of " or '.
@wzrdtales please see this code: https://github.com/senecajs-labs/seneca-standard-query/blob/master/standard-query.js#L23
in what case is your query escaped with " or ' ?
@mihaidma This is actually database dependend. You need to look for evey database you support.
See for example MySQL http://dev.mysql.com/doc/refman/5.7/en/identifiers.html where backticks are needed to escape schema objects.
And this given, the escape char must be defined on the driver not on this library. Otherwise this library can get useless for some new driver that has other needs which it can't pass along.
"when" column breaks the store, needs to check if an escape is missing https://github.com/senecajs/seneca-user/issues/51