Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-148

Core dump with named tuple cursor and information_schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.6
    • Fix Version/s: N/A
    • Component/s: Generic
    • Labels:
      None

      Description

      Connector is causing a coredump if I try to access any information_schema table with a named tuple cursor (dict and tuple works as expected)

      import mariadb
       
      db = mariadb.connect(host='10.0.0.2', user='Administrador', password='xxx', database='base')
       
      qr = db.cursor(named_tuple=True)
      qr.execute('select * from some_table')
      rows = qr.fetchall()
      print('select 1 ok')
       
      qr.execute('select * from information_schema.columns')
       
      # Coredump here with 
      # Fatal Python error: type_traverse() called for non-heap type 'mariadb.Row'
      rows = qr.fetchall()
      
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            lucianobarcaro Luciano Barcaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration