Comparing version 0.0.24 to 0.0.25
@@ -222,6 +222,3 @@ var Where = require("./Where"); | ||
if (sql.found_rows) { | ||
tmp.unshift("SQL_CALC_FOUND_ROWS"); | ||
if (tmp.length == 1) { | ||
tmp.push("*"); | ||
} | ||
query.push("SQL_CALC_FOUND_ROWS"); | ||
} | ||
@@ -228,0 +225,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"license": "MIT", | ||
@@ -12,0 +12,0 @@ "repository": { |
@@ -26,3 +26,3 @@ var common = require('../common'); | ||
common.Select().calculateFoundRows().from('table1').build(), | ||
"SELECT SQL_CALC_FOUND_ROWS, * FROM `table1`" | ||
"SELECT SQL_CALC_FOUND_ROWS * FROM `table1`" | ||
); | ||
@@ -32,3 +32,3 @@ | ||
common.Select().calculateFoundRows().from('table1').select('id').build(), | ||
"SELECT SQL_CALC_FOUND_ROWS, `id` FROM `table1`" | ||
"SELECT SQL_CALC_FOUND_ROWS `id` FROM `table1`" | ||
); | ||
@@ -35,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35713
1237