You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
begin execute immediate 'drop table "book"'; exception when others then if sqlcode != -942 then raise; end if; end;;
begin execute immediate 'drop sequence "book_seq"'; exception when others then if sqlcode != -2289 then raise; end if; end;
Environment
Knex version: 0.21.5
Database + version: Oracle
OS: any
@atiertant
Bug
toQuery()
&toSql()
are returning duplicate semicolons for queries that pass through the methodwrapSqlWithCatch()
Example:
outputs:
It happens because both
wrapSqlWithCatch()
andtoQuery()
are appending a semicolon to end of query.https://github.com/knex/knex/blob/master/lib/dialects/oracle/utils.js#L30
https://github.com/knex/knex/blob/master/lib/interface.js#L14
The text was updated successfully, but these errors were encountered: