Skip to content

missing or invalid option creating table #580

@ggrimbert

Description

@ggrimbert

Hi,

I am working on the integration of node-oracledb into sequelize and I'm having an issue :

I can't execute a create table statement without an error. At each time, I got ORA-00922: missing or invalid option

The sql i try to pass is the following, it's ok with sqlplus and sqldeveloper :

CREATE TABLE users (id NUMBER(*,0) GENERATED BY DEFAULT ON NULL AS IDENTITY, createdAt TIMESTAMP NOT NULL, updatedAt TIMESTAMP NOT NULL,CONSTRAINT PKusersid PRIMARY KEY (id));

The call to execute() returns :

Error: ORA-00922: missing or invalid option

    at Error (native)

I am working with nodejs 6.9, Oracle 12c and there is no configuration problem as I am able run my application (which doesn't create tables).
Oracledb is in version 1.12.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions