It's a simple table with 2 columms: ID_EF (PK and FK) and LOCATION
The Insert into the DB is ok, but the value of ID_EF is incremented. In the
request the value for id_ef is 179 but at table shows other value (example:
4 if the higher value was 3, or 5 if it was 4). I don't wave a sequence to
that field.
Is Geoserver incrementing my id?
I know there were some issues about primary keys, there's already a
solution? to use pk as attibute?
If there is a sequence for a table (name: TABLE) named exactly as
TABLE_SEQUENCE then the new fid is taken from the sequnce. Otherwise
Geoserver makes a query to get max(fid) and uses (max(fid)+1) in insert.
At least this is how I have understood it.
I believe that it is better to take it as it is and use sequence and
trigger for all the tables if the meaning is to send inserts to them
through WFS.
-Jukka Rahkonen-
D.Nunes wrote:
Hi all,
I'm trying to insert a record into an Oracle table using wfs.
It's a simple table with 2 columms: ID_EF (PK and FK) and LOCATION
The Insert into the DB is ok, but the value of ID_EF is
incremented. In the request the value for id_ef is 179 but at
table shows other value (example:
4 if the higher value was 3, or 5 if it was 4). I don't wave
a sequence to that field.
Is Geoserver incrementing my id?
I know there were some issues about primary keys, there's
already a solution? to use pk as attibute?
--------------------------------------------------------------
----------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year.
Jumpstart your
developing skills, take BlackBerry mobile applications to
market and stay
ahead of the curve. Join us from November 9-12, 2009.
Register now! http://p.sf.net/sfu/devconf
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users