Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotSupportedError: Oracle type 2016 not supported. #436

Closed
tangyibo opened this issue May 15, 2020 · 1 comment
Closed

NotSupportedError: Oracle type 2016 not supported. #436

tangyibo opened this issue May 15, 2020 · 1 comment

Comments

@tangyibo
Copy link

In Oracle database ,I create one table like this:

CREATE TABLE "TEST"."table_with_interval" (
	"id" NUMBER,
	"col1" INTERVAL DAY (2) TO SECOND (6), 
	"col2" INTERVAL YEAR (2) TO MONTH, 
PRIMARY KEY ( "id" ) 
);

then I want to read metadata and row data like this:

oracle_cursor = self._connection.cursor()
        sql = "SELECT * FROM \"TEST\".\"table_with_interval\" where rownum<1"
        try:
            oracle_cursor.execute(sql)
        except Exception as e:
            raise e

but thow NotSupportedError when run at function oracle_cursor.execute(sql), and exeption is:

NotSupportedError: Oracle type 2016 not supported.

so, What can I do?

@tangyibo tangyibo added the bug label May 15, 2020
@cjbj cjbj added enhancement and removed bug labels May 15, 2020
@cjbj
Copy link
Member

cjbj commented May 15, 2020

See #367

@cjbj cjbj closed this as completed May 15, 2020
@cjbj cjbj added the duplicate label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants