-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oracle, impossible to add feature with an identity field #33681
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Comments
SebastienPeillet
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Jan 9, 2020
6 tasks
SebastienPeillet
pushed a commit
to SebastienPeillet/QGIS
that referenced
this issue
Jan 9, 2020
nyalldawson
pushed a commit
that referenced
this issue
Jan 13, 2020
SebastienPeillet
pushed a commit
to SebastienPeillet/QGIS
that referenced
this issue
Feb 4, 2020
SebastienPeillet
pushed a commit
to SebastienPeillet/QGIS
that referenced
this issue
May 22, 2020
nyalldawson
pushed a commit
to nyalldawson/QGIS
that referenced
this issue
Jun 2, 2020
(cherry picked from commit 0d5456f)
nyalldawson
pushed a commit
that referenced
this issue
Jun 19, 2020
(cherry picked from commit 0d5456f)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In Oracle, there is a type of field that generated values as serial type in postgresql. This type is called identity and values are generated by default or always.
It's not possible to add feature with digitize maptool nor table attribute when the identity field is always generated because oracle does not allow a insert request where a value (even the default value with the sequential) is given for this field.
For example in the image above, a table with a
pk
field (identity generated always) will not allow :INSERT INTO test( "pk", "cnt", "name", "name2", "num_char", "geom" ) VALUES ( ?, ?, ?, ?, ?, ? )
the request should be :
INSERT INTO test("cnt", "name", "name2", "num_char", "geom") VALUES ( ?, ?, ?, ?, ? )
without the
pk
field.Futhermore, default value like "ISEQ$$_75967".nextval (sequential for identity field) is not interpreted with the digitize maptool for both mode :
when the identity value is generated by default and not always, it is possible to customize the value to do it work.
How to Reproduce
CREATE TABLE QGIS.POINT_DATA_IDENTITY ( "pk" NUMBER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, GEOM SDO_GEOMETRY);
QGIS and OS versions
Additional context
The text was updated successfully, but these errors were encountered: