Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim-tropashko committed Apr 1, 2024
1 parent ceec894 commit adb6843
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ Error diagnostic fixes
## [1.2.11] - 2024-3-22

#57
#62
#63


25 changes: 12 additions & 13 deletions test/small_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,27 +688,26 @@ addreess

output = new quicksql(`test /insert 1 /colprefix pre
t1
#drop:true
`).getDDL();
#drop:true
`).getDDL();
output = output.substring(0, output.indexOf("-- Generated by Quick SQL"));
assert( "0 < output.indexOf(\"pre_t1\")" );
assert( "output.indexOf(\" t1\") < 0" );

}

// https://github.com/oracle/quicksql/issues/63
output = new quicksql(`t
// https://github.com/oracle/quicksql/issues/63
output = new quicksql(`t
s vc20 /nn /unique
#prefix: e01
`).getDDL();
output = output.substring(0, output.indexOf("-- Generated by Quick SQL"));
console.log(output);
assert( "0 < output.indexOf(\"e01_t_id_pk\")" );
assert( "0 < output.indexOf(\"e01_t_s_unq\")" );

#prefix: e01
`).getDDL();
output = output.substring(0, output.indexOf("-- Generated by Quick SQL"));
console.log(output);
assert( "0 < output.indexOf(\"e01_t_id_pk\")" );
assert( "0 < output.indexOf(\"e01_t_s_unq\")" );


}


small_tests();

console.log(assertionCnt);
Expand Down

0 comments on commit adb6843

Please sign in to comment.