Skip to content

MemoryError when cursor.execute() is called with a return value when outputtypehandler is set in cx_Oracle 7.2 on Python 3.7.x 64 bit #330

Closed
@AlexanderRavenheart

Description

@AlexanderRavenheart
  1. Python 3.7.x 64-bit (tested with 3.7.0 and 3.7.4). Issue is not present on 3.6.8.

  2. cx_Oracle 7.2. Issue is not present on cx_Oracle 7.0 and 7.1.

  3. cursor.execute("SELECT 1 FROM DUAL WHERE DUMMY LIKE TRANSLATE(:arg0 USING NCHAR_CS) ESCAPE TRANSLATE('\' USING NCHAR_CS)", {':arg0' = 'X'})

  4. MemoryError

  5. Windows 10 v1809 64-bit.

  6. Oracle Instant Client Windows Base 12.1.0.2.0 64-bit. Zip format extracted at D:\Rudi\Libs\Oracle\instantclient_12_1.

  7. Database information:

  • Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
  • PL/SQL Release 12.1.0.2.0 - Production
  • "CORE 12.1.0.2.0 Production"
  • TNS for Linux: Version 12.1.0.2.0 - Production
  • NLSRTL Version 12.1.0.2.0 - Production
  1. PATH environment variable contains D:\Rudi\Libs\Oracle\instantclient_12_1.

  2. No specific oracle environment variables set.

  3. No. This issue was discovered during execution of inspectdb from django as reported here: https://code.djangoproject.com/ticket/30630.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpatch availableAwaiting inclusion in official release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions