Commit 9c04406
committed
fix(oracle): use view available for all users for driver.Version
Use v$version instead of v$instance because
it is available to all users.
Like v$instance, v$version is available
in all non-ancient oracle versions.
Testing Done: Oracle Express 21c and 11g
For 11g:
docker run -d -p 1521:1521 -e ORACLE_PASSWORD=foobar gvenzl/oracle-xe:11-slim
./usql oracle://sys:foobar@localhost/xe
# version is shown correctly
create user test identified by test;
GRANT CREATE SESSION to test;
\connect oracle://test:test@localhost/xe
# version is still shown correctly, despite minimal privileges
21c in the issue was also tested that way.1 parent ce82ecc commit 9c04406
1 file changed
Lines changed: 4 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments