Skip to content

Commit 2b62775

Browse files
committed
Use uppercase for SQL keywords
1 parent f7ff4dc commit 2b62775

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

doc/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4524,9 +4524,9 @@ is a great way to convert relational table data to JSON:
45244524
45254525
```javascript
45264526
conn.execute(
4527-
"select json_object ('deptId' is d.department_id, 'name' is d.department_name) department "
4528-
+ "from departments d "
4529-
+ "where department_id < :did",
4527+
"SELECT JSON_OBJECT ('deptId' IS d.department_id, 'name' IS d.department_name) department "
4528+
+ "FROM departments d "
4529+
+ "WHERE department_id < :did",
45304530
[50],
45314531
function(err, result)
45324532
{

examples/lobbinds.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var dorelease = function(conn) {
6161
// Cleanup anything other than lobinsert1.js demonstration data
6262
var docleanup = function (conn, cb) {
6363
conn.execute(
64-
'delete from mylobs where id > 2',
64+
'DELETE FROM mylobs WHERE id > 2',
6565
function(err) {
6666
return cb(err, conn);
6767
});
@@ -316,7 +316,7 @@ var plsql_out_inout = function (conn, cb) {
316316
var doshowvtemplob = function (conn, cb) {
317317
console.log('6. Query from V$TEMPORARY_LOBS:');
318318
conn.execute(
319-
"select * from v$temporary_lobs",
319+
"SELECT * FROM V$TEMPORARY_LOBS",
320320
[], { outFormat: oracledb.OBJECT },
321321
function (err, result) {
322322
if (err) {

examples/lobinsert1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var dorelease = function(conn) {
6565

6666
var docleanup = function (conn, cb) {
6767
conn.execute(
68-
'delete from mylobs',
68+
'DELETE FROM mylobs',
6969
function(err) {
7070
return cb(err, conn);
7171
});

examples/lobinserttemp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var dorelease = function(conn) {
5757
// Cleanup anything other than lobinsert1.js demo data
5858
var docleanup = function (conn, cb) {
5959
conn.execute(
60-
'delete from mylobs where id > 2',
60+
'DELETE FROM mylobs WHERE id > 2',
6161
function(err) {
6262
return cb(err, conn);
6363
});

examples/lobplsqltemp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var dorelease = function(conn) {
5757
// Cleanup anything other than lobinsert1.js demo data
5858
var cleanup = function (conn, cb) {
5959
conn.execute(
60-
'delete from mylobs where id > 2',
60+
'DELETE FROM mylobs WHERE id > 2',
6161
function(err) {
6262
return cb(err, conn);
6363
});

examples/selectjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var dojsonfromrelational = function (conn, cb) {
113113
return cb(null, conn);
114114
} else {
115115
conn.execute(
116-
"SELECT JSON_object ('deptId' IS d.department_id, 'name' IS d.department_name) department "
116+
"SELECT JSON_OBJECT ('deptId' IS d.department_id, 'name' IS d.department_name) department "
117117
+ "FROM departments d "
118118
+ "WHERE department_id < :did",
119119
[50],

0 commit comments

Comments
 (0)