Apache OpenOffice (AOO) Bugzilla – Issue 61497
Unable to use the serial (sequence) field when set as primary key with PostgreSQL
Last modified: 2007-06-18 12:22:26 UTC
Steps to recreate: 1. Connect to a postgresql database (8.1.2) with unixODBC (2.2.11) and psqlodbc (08.01.0102). 2. Create a new table. 3. Create one column called "id" that is an autovalued integer (serial). 4. Add a primary key to the column "id". 5. Create a second column (for example varchar(50) with name "desc") 6. Save the table as Table1. 7. Open the table and put some text in the column "desc" (for example 'a'). 8. When trying to insert a second value in the column "desc" (for example 'b') an odbc error is raised. The warning make a reference to a PostgreSQL error code 22P02 (INVALID TEXT REPRESENTATION). With this problem, it isn't possible to create a primary key on a serial column with PostgreSQL. If the serial column has a UNIQUE key, then a number is correctly generated.
does this problem still occure in current version (http://download.openoffice.org/680/index.html)? please acknowledge thx
Hi, This problem has just been brought up by an experienced db user on one of the French n-l user lists, except that in that user's scenario the application crashes (MacOSX OOo D680m1) and he is using a JDBC driver to connect to the pg server. I think we should confirm this. Alex
change owner
does this problem still ocure in a current version?
no respond
no respond - no confirm for such a long time (nobody seems to be interested in) -> close do not hesitate to reopen this issue if it still occure in a current version thx