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
Knex version: 0.20.13
Database + version: oracle 18, oracledb: 4.2.0
OS: macOs High Sierra @atiertant
Bug
I'm trying to create the constraint with regexp using knex on the oracle database. Knex creates the constraint on the oracle column but it replaces "?" with placeholder like ":1", ":2". I tried to replace the question mark (according to documentation) with "?". It doesn't work for me on oracle db. Here is an example of oracle column constraint knex.raw('ALTER TABLE atest ADD CONSTRAINT C_TEST CHECK (REGEXP_LIKE(COL_A, \'^((([A]{0,4})WW)|(W{0,2}))\\?([B]{5}WW)+((([C]{5})W\\?))$\'))');
Instead of mentioned regexp in the database I see:
^((([A]{0,4})WW)|(W{0,2})):1([B]{5}WW)+((([C]{5})W:2))$
I read the documentation and the suggested solution to escape the question \? mark doesn't work for me.
The text was updated successfully, but these errors were encountered:
Environment
Knex version: 0.20.13
Database + version: oracle 18, oracledb: 4.2.0
OS: macOs High Sierra
@atiertant
Bug
I'm trying to create the constraint with regexp using knex on the oracle database. Knex creates the constraint on the oracle column but it replaces "?" with placeholder like ":1", ":2". I tried to replace the question mark (according to documentation) with "?". It doesn't work for me on oracle db. Here is an example of oracle column constraint
knex.raw('ALTER TABLE atest ADD CONSTRAINT C_TEST CHECK (REGEXP_LIKE(COL_A, \'^((([A]{0,4})WW)|(W{0,2}))\\?([B]{5}WW)+((([C]{5})W\\?))$\'))');
Instead of mentioned regexp in the database I see:
^((([A]{0,4})WW)|(W{0,2})):1([B]{5}WW)+((([C]{5})W:2))$
I read the documentation and the suggested solution to escape the question \? mark doesn't work for me.
The text was updated successfully, but these errors were encountered: