| Thread Previous • Date Previous • Date Next • Thread Next |
Public bug reported:
Here statement has no charset field, charfield is into connection object
I did a simple fixing here is the code please review it.
/* "C:\Documents and Settings\Owner\oursql-py3k\oursqlx\statement.pyx":126
* cdef int _raise_error(self) except -1:
* cdef int err = mysql_stmt_errno(self.stmt)
* self.conn.charset # <<<<<<<<<<<<<<
* raise _exception_from_errno(err)(
* self.conn._decode_char_p(mysql_stmt_error(self.stmt)), err)
*/
__pyx_t_1 = PyObject_GetAttr(((PyObject *)((struct __pyx_obj_6oursql__Statement *)__pyx_v_self)->conn), __pyx_n_s__charset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
** Affects: oursql
Importance: Undecided
Status: New
--
an error in statments code
https://bugs.launchpad.net/bugs/669184
You received this bug notification because you are a member of Agesys
Team, which is subscribed to oursql.
Status in oursql python bindings for mysql: New
Bug description:
Here statement has no charset field, charfield is into connection object I did a simple fixing here is the code please review it.
/* "C:\Documents and Settings\Owner\oursql-py3k\oursqlx\statement.pyx":126
* cdef int _raise_error(self) except -1:
* cdef int err = mysql_stmt_errno(self.stmt)
* self.conn.charset # <<<<<<<<<<<<<<
* raise _exception_from_errno(err)(
* self.conn._decode_char_p(mysql_stmt_error(self.stmt)), err)
*/
__pyx_t_1 = PyObject_GetAttr(((PyObject *)((struct __pyx_obj_6oursql__Statement *)__pyx_v_self)->conn), __pyx_n_s__charset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
| Thread Previous • Date Previous • Date Next • Thread Next |