Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Generic
    • None

    Description

      When casting to binary the fetched result will be a unicode string instead of a binary:

      Python 3.8.2rc2+ (heads/3.8-dirty:44c6901, Jul 28 2020, 18:31:20) 
      [GCC 8.3.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import mariadb
      >>> 
      >>> conn= mariadb.connect()
      >>> cursor=conn.cursor()
      >>> cursor.execute("SELECT CAST('foo' AS BINARY) AS anon_1 WHERE 1=?", (1,))
      >>> cursor.fetchone()
      ('foo',)
      >>> cursor.execute("SELECT CAST('foo' AS BINARY) AS anon_1")
      >>> cursor.fetchone()
      ('foo',)
      

      Attachments

        Activity

          georg Georg Richter created issue -
          georg Georg Richter added a comment -

          rev. a749c538599ca5e277e097df4f32756847c02745

          georg Georg Richter added a comment - rev. a749c538599ca5e277e097df4f32756847c02745
          georg Georg Richter made changes -
          Field Original Value New Value
          issue.field.resolutiondate 2020-08-07 12:47:38.0 2020-08-07 12:47:38.916
          georg Georg Richter made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 112124 ] MariaDB v4 [ 135666 ]

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.