Comparing version 0.95.12 to 0.95.13
@@ -75,3 +75,6 @@ // PostgreSQL Column Compiler | ||
useTz = typeof useTz === 'boolean' ? useTz : true; | ||
precision = precision ? '(' + precision + ')' : ''; | ||
precision = | ||
precision !== undefined && precision !== null | ||
? '(' + precision + ')' | ||
: ''; | ||
@@ -82,12 +85,3 @@ return `${useTz ? 'timestamptz' : 'timestamp'}${precision}`; | ||
timestamp(withoutTz = false, precision) { | ||
let useTz; | ||
if (isObject(withoutTz)) { | ||
({ useTz, precision } = withoutTz); | ||
} else { | ||
useTz = !withoutTz; | ||
} | ||
useTz = typeof useTz === 'boolean' ? useTz : true; | ||
precision = precision ? '(' + precision + ')' : ''; | ||
return `${useTz ? 'timestamptz' : 'timestamp'}${precision}`; | ||
return this.datetime(withoutTz, precision); | ||
} | ||
@@ -94,0 +88,0 @@ |
{ | ||
"name": "knex", | ||
"version": "0.95.12", | ||
"version": "0.95.13", | ||
"description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3", | ||
@@ -5,0 +5,0 @@ "main": "knex", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
769856
20334