smartquerry read only

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sbslavonac
Posts: 35
Joined: Mon 02 Apr 2007 09:14

smartquerry read only

Post by sbslavonac » Tue 12 Jun 2007 09:29

After installing version 6.05, all queries are set to read only when user connect.
I can work normally but useres keep getting read only error when trying to modify records.
Has anything changed on user rigths in 6.05
Boris

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 13 Jun 2007 07:45

We could not reproduce the problem. Please describe the problem more detailed. Specify the SQL text for the TSmartQuery component that is read-only, and the script to create tables used in the query.

sbslavonac
Posts: 35
Joined: Mon 02 Apr 2007 09:14

Post by sbslavonac » Sat 21 Jul 2007 11:09

Plash wrote:We could not reproduce the problem. Please describe the problem more detailed. Specify the SQL text for the TSmartQuery component that is read-only, and the script to create tables used in the query.
Found what was changed.
Select statment on table with no primary key
Select rowid, t.* from test_data

and using ROWID for insert, update... switches querry to readonly if user is not shema owner

while
Select t.rowid, t.* from test_data
work normaly for all users

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 23 Jul 2007 07:34

You should set the SetFieldsReadOnly option of the TSmartQuery component to False.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 23 Jul 2007 08:59

Please describe also how are you changing the current schema, and specify whether you open some queries before changing the schema. This information should help us to reproduce the problem.

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Mon 23 Jul 2007 10:41

In my scenario the following query is readonly

Code: Select all

SELECT  V.*, ROWID
  FROM  SYST_PARAM_VALUE V 

And this is readwrite :

Code: Select all

SELECT  V.*, ROWID
  FROM  systools.SYST_PARAM_VALUE V 
I'm connecting with a different user then systools. And SYST_PARAM_VALUE is a public synonym.

All based on 6.10.

Any ideas?

Greetings
Jens

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 24 Jul 2007 08:37

We have fixed this problem. The fix will be included in the next build of ODAC.

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Tue 24 Jul 2007 11:48

Can you send me the fix by mail.

I have the component source.

Greetings and thanks
Jens

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 24 Jul 2007 12:28

We have sent the fix to your e-mail.

Post Reply