Public bug reported:

statement.pyx line 124 has the _Statement._raise_error() method:

    cdef int _raise_error(self) except -1:
        cdef int err = mysql_stmt_errno(self.stmt)
        self.charset
        raise _exception_from_errno(err)(
            self.conn._decode_char_p(mysql_stmt_error(self.stmt)), err)

The statement "self.charset" in line 126 has no apparent purpose, and
there is no "charset" attribute of this class.  ANY call to this method
will result in an error to that effect.  The statement should be
removed.

** Affects: oursql
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Agesys
Team, which is subscribed to oursql.
https://bugs.launchpad.net/bugs/805983

Title:
  _Statement has no attribute charset

Status in oursql:
  New

Bug description:
  statement.pyx line 124 has the _Statement._raise_error() method:

      cdef int _raise_error(self) except -1:
          cdef int err = mysql_stmt_errno(self.stmt)
          self.charset
          raise _exception_from_errno(err)(
              self.conn._decode_char_p(mysql_stmt_error(self.stmt)), err)

  The statement "self.charset" in line 126 has no apparent purpose, and
  there is no "charset" attribute of this class.  ANY call to this
  method will result in an error to that effect.  The statement should
  be removed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oursql/+bug/805983/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~agesys-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~agesys-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to