@@ -74,4 +74,24 @@ describe('18. constants.js', function() {
7474
7575 } ) ;
7676
77+ it ( '18.4 SQL Statement Type Constants' , function ( ) {
78+
79+ should . strictEqual ( oracledb . STMT_TYPE_UNKNOWN , 0 ) ;
80+ should . strictEqual ( oracledb . STMT_TYPE_SELECT , 1 ) ;
81+ should . strictEqual ( oracledb . STMT_TYPE_UPDATE , 2 ) ;
82+ should . strictEqual ( oracledb . STMT_TYPE_DELETE , 3 ) ;
83+ should . strictEqual ( oracledb . STMT_TYPE_INSERT , 4 ) ;
84+ should . strictEqual ( oracledb . STMT_TYPE_CREATE , 5 ) ;
85+ should . strictEqual ( oracledb . STMT_TYPE_DROP , 6 ) ;
86+ should . strictEqual ( oracledb . STMT_TYPE_ALTER , 7 ) ;
87+ should . strictEqual ( oracledb . STMT_TYPE_BEGIN , 8 ) ;
88+ should . strictEqual ( oracledb . STMT_TYPE_DECLARE , 9 ) ;
89+ should . strictEqual ( oracledb . STMT_TYPE_CALL , 10 ) ;
90+ should . strictEqual ( oracledb . STMT_TYPE_EXPLAIN_PLAN , 15 ) ;
91+ should . strictEqual ( oracledb . STMT_TYPE_MERGE , 16 ) ;
92+ should . strictEqual ( oracledb . STMT_TYPE_ROLLBACK , 17 ) ;
93+ should . strictEqual ( oracledb . STMT_TYPE_COMMIT , 21 ) ;
94+
95+ } ) ;
96+
7797} ) ;
0 commit comments