Author: Brian Kearns <[email protected]>
Branch:
Changeset: r63028:c2b2e1588571
Date: 2013-04-04 17:29 -0400
http://bitbucket.org/pypy/pypy/changeset/c2b2e1588571/
Log: this is technically bytes (matters for py3)
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -1167,7 +1167,7 @@
if ret == _lib.SQLITE_OK and not self._statement:
# an empty statement, work around that, as it's the least trouble
- c_sql = _ffi.new("char[]", "select 42")
+ c_sql = _ffi.new("char[]", b"select 42")
ret = _lib.sqlite3_prepare_v2(self.__con._db, c_sql, -1,
statement_star, next_char)
self._statement = statement_star[0]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit