← Back to team overview

agesys-dev team mailing list archive

[Bug 669184] Re: an error in statments code

 

** Branch linked: lp:oursql/py3k

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

Title:
  an error in statments code

Status in oursql:
  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;





References