Escape getQueryRowCount with $$

This commit is contained in:
Raul Marin 2017-11-29 15:25:35 +01:00 committed by Raúl Marín
parent fcbf5ffcc5
commit dfe01c836c

View File

@ -22,7 +22,7 @@ module.exports.extractTableNames = function extractTableNames(query) {
}; };
module.exports.getQueryRowCount = function getQueryRowEstimation(query) { module.exports.getQueryRowCount = function getQueryRowEstimation(query) {
return 'select CDB_EstimateRowCount(\'' + query + '\') as rows'; return 'select CDB_EstimateRowCount($$' + query + '$$) as rows';
}; };
/** Cast the column to epoch */ /** Cast the column to epoch */