Commit 7e477c0
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 oracle versions from the past 20+ years.
Typical Version() output is "Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production"
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 7e477c0
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments