an error in statments code

Bug #669184 reported by kyo
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oursql
Fix Committed
Undecided
Unassigned

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;

Revision history for this message
kyo (carlitos-kyo) wrote :

Sorry with the original code this exception is raise:

'_DictStatement' object has no attribute 'charset'

Revision history for this message
Stephen Thorne (jerub) wrote :

This has been fixed in trunk of the py3k branch.

Changed in oursql:
status: New → Fix Committed
milestone: none → py3k-0.9.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.