You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I cannot drop or get the current value of sequences that my user is not the owner of, even though my user has permission to create/nextval them. The sequence in question is in a schema not owned by my DB user. Is there some way I can disable the check when dropping/accessing sequences? Also, can the schema prefix be left out when querying for the sequence?
Code snippet of problem
DB::getSequence()->create('transaction_seq'); // WorksDB::enableQueryLog(); // Start of SQL logs below$transaction_id = DB::getSequence()->currentValue('transaction_seq'); // Returns 0$transaction_id = DB::getSequence()->nextValue('transaction_seq'); // Returns 1$transaction_id = DB::getSequence()->currentValue('transaction_seq'); // Still returns 0DB::getSequence()->drop('transaction_seq'); // Does not do anythingDB::getQueryLog();
-- Sequence name should NOT include the schema prefix "test", and my DB user is not the ownerselect*from all_sequences where sequence_name=upper('test.transaction_seq') and sequence_owner=upper(user)
selecttest.transaction_seq.nextval as"id"from dual -- It's fine to use the schema prefix for this query thoughselect*from all_sequences where sequence_name=upper('test.transaction_seq') and sequence_owner=upper(user)
select*from all_sequences where sequence_name=upper('test.transaction_seq') and sequence_owner=upper(user)
System details
Windows 10
PHP 8.1.15
Laravel 10.x
Laravel-OCI8 v10.3.0
The text was updated successfully, but these errors were encountered:
Summary of problem or feature request
Hi, I cannot drop or get the current value of sequences that my user is not the owner of, even though my user has permission to create/nextval them. The sequence in question is in a schema not owned by my DB user. Is there some way I can disable the check when dropping/accessing sequences? Also, can the schema prefix be left out when querying for the sequence?
Code snippet of problem
System details
The text was updated successfully, but these errors were encountered: