Anyone can tell me why Servoy keeps saying it needs to use Servoy sequences on my database managed primary keys.
I created a new database with tables that have database managed primary keys.
I launched Servoy and added the database to the data sources and created a new solution that used this named connection.
Then looking at the data providers I find that Servoy has set the PK’s to Servoy Sequences.
Shouldn’t Servoy see that these are database managed?
Here is an example of a table:
Table "public.rss_groups"
Column | Type | Modifiers
-----------------+------------------------+------------------------------------------------------------
grp_id | bigint | not null default nextval('public.rss_groups_id_seq'::text)
grp_fk_group | bigint |
grp_name | character varying(50) | not null
grp_description | character varying(255) |
Indexes:
"rss_groups_id_pk" primary key, btree (grp_id)
Servoy Developer
Version R2 2.1.2-build 315
Java version 1.4.2-38 (Mac OS X 10.3.7)
PostgreSQL 7.4.2 on powerpc-apple-darwin7.3.0, compiled by GCC gcc-3.3 (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
JDBC driver pg74.215.jdbc2ee
I created a table (rss_test) through Servoy and have set the sequence type to db seq without filling in the sequence name.
I applied the new (PK) column and rechecked the sequence name.
It shows seq_rss_test_rss_testid.
In the database the table looks like this:
Table "public.rss_test"
Column | Type | Modifiers
------------+---------+-----------
rss_testid | integer | not null
Indexes:
"rss_test_pkey" primary key, btree (rss_testid)
No sequence is set in the table and no sequence (table) is created.
jcompagner:
We will check the read in from tables made by other tools under postgresql.
Can you change the sequence name that servoy must use for those tables?
ok so if you change the sequence name that servoy should use for that column then everything is working?
The only problem is that servoy doesn’t prefill it right?
jcompagner:
ok so if you change the sequence name that servoy should use for that column then everything is working?
The only problem is that servoy doesn’t prefill it right?
Correct.
Btw when you type in a sequence name and apply the changes and then move to another table to do the same it shows the last typed sequence name in the dialog. Should be empty (or the real sequence name).