Issue 75290 - Access to postgresql database is readonly -- no edit allowed
Summary: Access to postgresql database is readonly -- no edit allowed
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.2
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: dbaneedsconfirm
QA Contact: issues@dba
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2007-03-11 23:28 UTC by gjrussell2
Modified: 2013-08-07 15:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gjrussell2 2007-03-11 23:28:40 UTC
When I access postgresql database (using either jdbc or odbc) the access is
readonly --- I can't edit or delete rows. The "Edit Data" button is 
disabled. Details follow:

Cheers,
Geoff Russell

Ubunto 6.06.1, postgresql 8.1 

The following error is in the postgres log.

------------------------------------------------------------ Start error
CONN ERROR: func=PGAPI_GetInfo30, desc='', errnum=209, errmsg='Unrecognized key
passed to SQLGetInfo30.'
------------------------------------------------------------ End error

And also:

STATEMENT ERROR: func=PGAPI_SetStmtAttr, desc='', errnum=28, errmsg='Unsupported
statement option (Set)'
                 ------------------------------------------------------------
                 hdbc=138465536, stmt=139330016, result=0
                 manual_result=1, prepare=0, internal=0
                 bindings=0, bindings_allocated=0
                 parameters=0, parameters_allocated=0
                 statement_type=-2, statement='(NULL)'
                 stmt_with_params='(NULL)'
                 data_at_exec=-1, current_exec_param=-1, put_data=0
                 currTuple=-1, current_col=-1, lobj_fd=-1
                 maxRows=0, rowset_size=1, keyset_size=0, cursor_type=3,
scroll_concurrency=1
                 cursor_name=''
                 ----------------QResult Info -------------------------------
CONN ERROR: func=PGAPI_SetStmtAttr, desc='', errnum=0, errmsg='(NULL)'




------------------------------ odbc.ini
[testdb]
Description         = testdb
Driver              = PostgreSQL
Trace               = Yes
TraceFile           = /tmp/psqlodbc.log
Database            = testdb
Servername          = localhost
UserName            = geoff
Password            =
Port                = 5432
Protocol            = 6.4
ReadOnly            = No
RowVersioning       = No
ShowSystemTables    = No
ShowOidColumn       = No
FakeOidIndex        = No
ConnSettings        =

-------------------------------- odbcinst.ini
[PostgreSQL]
Description     = PostgreSQL ODBC driver
Driver          = /usr/lib/odbc/psqlodbc.so
Setup           = /usr/lib/odbc/libodbcpsqlS.so
Debug           = 0
CommLog         = 1
Comment 1 Mechtilde 2007-04-04 14:13:14 UTC
Do you use the primary key?

Can you try it with the nwest version 2.2?
Comment 2 p9w.vu.31122010 2007-05-07 18:16:18 UTC
Reproducible on Linux with 680m14 with unixODBC 2.2.11-7.1 and postgresql
8.1.8-1 Fedora 6.

But the error message seems to be emitted by unixODBC.  So I would first
investigate on configuring the connection unixODBC <-> postgresql.
Comment 3 christoph.lukasiak 2007-09-05 09:32:18 UTC
does this problem still occure in a current version, available here:
http://download.openoffice.org/680/index.html?intcmp=1236
Comment 4 Mechtilde 2007-09-05 19:31:46 UTC
also test
dba.openoffice.org/drivers
Comment 5 alex.thurgood 2007-12-07 08:41:03 UTC
I can't reproduce this behaviour with the latest JDBC3 driver and postgres 8.2.3
and OOo 2.3.1 for MacIntel OSX X11.

Alex
Comment 6 Mechtilde 2008-05-03 18:19:57 UTC
no response -> invalid
Comment 7 Mechtilde 2008-05-03 18:24:25 UTC
-> closed