I'm connecting to a Oracle database using the following code:
jar = ojdbc8.jar path
jvm_path = jvm.dll path
args = '-Djava.class.path=%s' % jar
jpype.startJVM(jvm_path, args)
con = jaydebeapi.connect("oracle.jdbc.driver.OracleDriver", url,[user, password], jar)
The connection works fine, however the data is returned in this odd format.
pd.read_sql("SELECT * FROM table1", con)
yields
+---+-----------------+-----------------+-----------------+
| | (C,O,L,U,M,N,1) | (C,O,L,U,M,N,2) | (C,O,L,U,M,N,3) |
+---+-----------------+-----------------+-----------------+
| 1 | (t,e,s,t) | (t,e,s,t,2) | 1 |
+---+-----------------+-----------------+-----------------+
| 2 | (f,o,o) | (b,a,r) | 100 |
+---+-----------------+-----------------+-----------------+
The number and dates are imported correctly, but not the varchar
columns. I tried different tables and all of them have this problem.
I haven't seen anything like that anywhere. Hope you can help me.