Escape getQueryRowCount with $$
This commit is contained in:
parent
fcbf5ffcc5
commit
dfe01c836c
@ -22,7 +22,7 @@ module.exports.extractTableNames = function extractTableNames(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 */
|
||||
|
Loading…
Reference in New Issue
Block a user