0 2 0
default
Jean-Francois Pieronne - 2 months ago 2019-12-06 11:14:42
jf.pieronne@laposte.net
flags ITERATOR_CLOSE_CURSOR and RETURN_UNICODE with same value. Fixed.
2 files changed with 3 insertions and 3 deletions:
↑ Collapse Diff ↑
...
 
@@ -34,7 +34,7 @@ for row in curs:
34 34
 
rdb.rollback()
35 35
 
"""
36 36
 

	
37
 
__version__ = "6.0"
37
 
__version__ = "6.1"
38 38
 

	
39 39
 
import atexit
40 40
 
import _rdb
...
 
@@ -45,7 +45,7 @@ from logging import getLogger
45 45
 
log = getLogger(__name__)
46 46
 

	
47 47
 
setFlags(M_RETURN_TUPLES | M_SQLCODE_NOT_RETURNED |
48
 
              M_USE_CALLBACK | M_ITERATOR_CLOSE_CURSOR)
48
 
              M_USE_CALLBACK | M_ITERATOR_CLOSE_CURSOR | M_RETURN_UNICODE)
49 49
 

	
50 50
 
def use_mxdatetimes():
51 51
 
    """Set callbacks to return mx.DateTime object"""
...
 
@@ -84,7 +84,7 @@ static PyObject* RdbError;
84 84
 
#define RDB_USE_CALLBACK (Flags & RDB_M_USE_CALLBACK)
85 85
 
#define RDB_M_ITERATOR_CLOSE_CURSOR 8
86 86
 
#define RDB_ITERATOR_CLOSE_CURSOR (Flags & RDB_M_ITERATOR_CLOSE_CURSOR)
87
 
#define RDB_M_RETURN_UNICODE 8
87
 
#define RDB_M_RETURN_UNICODE 16
88 88
 
#define RDB_RETURN_UNICODE (Flags & RDB_M_RETURN_UNICODE)
89 89
 
static long Flags = 0;
90 90
 

	
0 comments (0 inline, 0 general)