Selecting ROWIDs errors out on fetch.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
JayDeBeApi |
Fix Released
|
Medium
|
Bastian |
Bug Description
Fetching a ROWID from an Oracle table (I'm using Oracle's JDBC jar, "ojdbc6.jar") errors out, as there's no function to print it. I'm connecting to an Oracle 10g 10.2 database, if that matters, using JayDeBeApi 0.1.
>>> curs.execute(
>>> curs.description
[(u'IM_ID', u'NUMBER', 22, 22, 12, 0, 0), (u'INT_METHOD', u'VARCHAR2', 50, 50, 50, 0, 1), (u'ROWID', u'ROWID', 1, 1, 0, 0, 0)]
>>> curs.fetchall()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jaydebeapi/
row = self.fetchone()
File "jaydebeapi/
getter = getattr(self._rs, 'get%s' % METHOD_
KeyError: -8
Changed in jaydebeapi: | |
assignee: | nobody → Bastian (baztian) |
importance: | Undecided → Medium |
Changed in jaydebeapi: | |
status: | Fix Committed → Fix Released |
The type ROWID seems to be new in Java 1.6 (http:// download. oracle. com/javase/ 6/docs/ api/constant- values. html#java. sql). Should provide more mappings and a default behaviour so there won't be any problems when new constants are added to java.sql.Types.