[pypy-svn] pypy default: (dario, iko, rguillebert) Fixes a segfault on sqlite

rguillebert commits-noreply at bitbucket.org
Thu Apr 28 12:58:57 CEST 2011


Author: Romain Guillebert <romain.py at gmail.com>
Branch: 
Changeset: r43708:a8dd6ee71b33
Date: 2011-04-28 12:57 +0200
http://bitbucket.org/pypy/pypy/changeset/a8dd6ee71b33/

Log:	(dario, iko, rguillebert) Fixes a segfault on sqlite

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -148,6 +148,9 @@
 sqlite.sqlite3_value_text.argtypes = [c_void_p]
 sqlite.sqlite3_value_text.restype = c_char_p
 
+sqlite.sqlite3_value_type.argtypes = [c_void_p]
+sqlite.sqlite3_value_type.restype = c_int
+
 sqlite.sqlite3_bind_int.argtypes = [c_void_p, c_int, c_int]
 sqlite.sqlite3_bind_parameter_count.argtypes = [c_void_p]
 sqlite.sqlite3_bind_parameter_count.restype = c_int


More information about the Pypy-commit mailing list