@dbpath/oracle
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -24,3 +24,3 @@ "use strict"; | ||
} | ||
const copy = [sql[0].replace('select ', `select /*+ FIRST_ROWS(${stop}) */ rownum as ${exports.oracleRowNum},`), ...sql.slice(1)] | ||
const copy = [sql[0].replace('select ', `select /*+ FIRST_ROWS(${stop}) */ `), ...sql.slice(1)] | ||
.map(addLimit); | ||
@@ -27,0 +27,0 @@ return [...copy, |
@@ -45,5 +45,7 @@ "use strict"; | ||
} | ||
const meta = { columns: result.metaData | ||
const meta = { | ||
columns: result.metaData | ||
.map(md => ({ name: md.name.toLowerCase() })) | ||
.filter(limitFn_hack_1.hackFilterColumnNames) }; | ||
.filter(limitFn_hack_1.hackFilterColumnNames) | ||
}; | ||
let r = { rows, meta }; | ||
@@ -68,2 +70,3 @@ return r; | ||
// console.log ( sql, result.rowsAffected ) | ||
connection.commit(); | ||
return result.rowsAffected; | ||
@@ -70,0 +73,0 @@ } |
@@ -72,3 +72,2 @@ "use strict"; | ||
}); | ||
dal.update("commit"); | ||
} | ||
@@ -130,3 +129,3 @@ finally { | ||
"select /*+ FIRST_ROWS(6) */ rownum as dbautorownum,* from table", | ||
"where rownum <= 6 order by id", | ||
"where rownum<=6 order by id", | ||
"--4" | ||
@@ -136,3 +135,3 @@ ]); | ||
"select /*+ FIRST_ROWS(12) */ rownum as dbautorownum,* from table", | ||
"where rownum <=12 order by id", | ||
"where rownum<=12 order by id", | ||
"--7" | ||
@@ -139,0 +138,0 @@ ]); |
{ | ||
"name": "@dbpath/oracle", | ||
"description": "", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"main": "dist/index", | ||
@@ -21,4 +21,4 @@ "types": "dist/index", | ||
"oracledb": "^5.5.0", | ||
"@dbpath/utils": "0.3.6", | ||
"@dbpath/dal": "0.3.6" | ||
"@dbpath/utils": "0.3.7", | ||
"@dbpath/dal": "0.3.7" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
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
469
26174
+ Added@dbpath/config@0.3.7(transitive)
+ Added@dbpath/dal@0.3.7(transitive)
+ Added@dbpath/fixtures@0.3.7(transitive)
+ Added@dbpath/types@0.3.7(transitive)
+ Added@dbpath/utils@0.3.7(transitive)
- Removed@dbpath/config@0.3.6(transitive)
- Removed@dbpath/dal@0.3.6(transitive)
- Removed@dbpath/fixtures@0.3.6(transitive)
- Removed@dbpath/types@0.3.6(transitive)
- Removed@dbpath/utils@0.3.6(transitive)
Updated@dbpath/dal@0.3.7
Updated@dbpath/utils@0.3.7