Victor Stinner
afccb0a821
sqlite: Use Py_ssize_t to store a size instead of an int
Fix a compiler warning on Windows 64-bit
12 years ago
Victor Stinner
3f658bec35
sqlite: raise an OverflowError if a string or a BLOB is longer than INT_MAX
bytes
Fix compiler warnings on Windows 64-bit
12 years ago
Victor Stinner
83e30bf4bd
Fix a compiler warning on Windows 64-bit: _sqlite module
12 years ago
Victor Stinner
83ed42bfbf
sqlite: raise an OverflowError if the result is longer than INT_MAX bytes
Fix a compiler warning on Windows 64-bit
12 years ago
Martin v. Löwis
e75fc14813
Issue #19514 : Deduplicate some _Py_IDENTIFIER declarations.
Patch by Andrei Dorian Duma.
12 years ago
Victor Stinner
85a12a8beb
Issue #19437 : Fix pysqlite_cursor_iternext() of sqlite3, when the row factory
fails, don't consume the row (restore it) and fail immediatly (don't call
pysqlite_step())
12 years ago
Victor Stinner
b3e1ef1ce0
Issue #19437 : Fix pysqlite_connection_call() of sqlite3, return NULL when
PyList_Append() fails
12 years ago
Victor Stinner
dd4b299df1
Issue #19437 : Fix pysqlite_cursor_iternext() of sqlite3, handle
_pysqlite_fetch_one_row() failure
12 years ago
Serhiy Storchaka
c679227e31
Issue #1772673 : The type of `char*` arguments now changed to `const char*`.
12 years ago
Victor Stinner
b84fc0fd9f
Fix compilation of the _sqlite module if threads are disabled
13 years ago
Serhiy Storchaka
cbad3a367e
Issue #18701 : Remove sqlitecompat.h.
13 years ago
Serhiy Storchaka
8fa8ee3970
Issue #18701 : Remove support of old CPython versions (<3.0) from C code.
13 years ago
Victor Stinner
ffff763161
Issue #18519 : Fix test_sqlite on old versions of libsqlite3
With old SQLite versions, _sqlite3_result_error() sets a new Python exception,
so don't restore the previous exception.
13 years ago
Victor Stinner
d4095d95f8
Issue #18519 : the Python authorizer callback of sqlite3 must not raise Python exceptions
The exception is printed if sqlite3.enable_callback_tracebacks(True) has been
called, otherwise the exception is cleared.
13 years ago
Victor Stinner
3a8573230c
Issue #18488 : Fix _pysqlite_final_callback()
Restore behaviour of Python 3.3: print the finalizer() error if
sqlite3.enable_callback_tracebacks() has been called, clear the error
otherwise.
But keep (save/restore) also the AttributeError raised in
_pysqlite_step_callback().
13 years ago
Victor Stinner
41801f5812
Issue #18519 , #18408 : Fix sqlite authorizer callback
If a previous call to the authorizer callback failed and raised an exception,
don't call the Python authorizer callback, but just return SQLITE_DENY.
13 years ago
Victor Stinner
4abda5d5b0
Issue #18408 : Fix _pysqlite_fetch_one_row(), in debug mode, don't call
type_call() with an exception set
13 years ago
Victor Stinner
e9af4cface
Issue #18488 : _pysqlite_final_callback() should not clear the exception set by
the last call to the step() method of a user function
13 years ago
Victor Stinner
725e421222
Fix compilater warnings on Windows 64-bit
13 years ago
Serhiy Storchaka
a9217a42e6
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
13 years ago
Serhiy Storchaka
d160b12292
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
13 years ago
Antoine Pitrou
902fc8b5a0
Issue #13773 : sqlite3.connect() gets a new `uri` parameter to pass the filename as a URI, allowing to pass custom options.
13 years ago
Serhiy Storchaka
3cf96ac248
Issue #17073 : Fix some integer overflows in sqlite3 module.
13 years ago
Serhiy Storchaka
35c52b687f
Issue #17073 : Fix some integer overflows in sqlite3 module.
13 years ago
Ned Deily
77e77a1273
Issue #14572 : Prevent build failures with pre-3.5.0 versions of
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
14 years ago
Petri Lehtinen
4ab701b2d3
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033 .
14 years ago
Petri Lehtinen
4fe85abab9
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033 .
14 years ago
Petri Lehtinen
bc35bebb45
Undocument and clean up sqlite3.OptimizedUnicode
Closes #13921 .
14 years ago
Petri Lehtinen
4a84f58143
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
15 years ago
Petri Lehtinen
c7fd523ac5
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
15 years ago
Petri Lehtinen
0518f470b1
sqlite3: Handle strings with embedded zeros correctly
Closes #13676 .
14 years ago
Petri Lehtinen
023fe334bb
sqlite3: Handle strings with embedded zeros correctly
Closes #13676 .
14 years ago
Amaury Forgeot d'Arc
864741b2c7
Issue #13350 : Replace most usages of PyUnicode_Format by PyUnicode_FromFormat.
14 years ago
Martin v. Löwis
bd928fef42
Rename _Py_identifier to _Py_IDENTIFIER.
14 years ago
Martin v. Löwis
afe55bba33
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
14 years ago
Antoine Pitrou
ace2ccf387
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
14 years ago
Antoine Pitrou
1665d2c75f
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
14 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
14 years ago
Brian Curtin
dfc80e3d97
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724 .
15 years ago
Benjamin Peterson
5c2b09e856
be extra careful with a borrowed reference when the GIL could be released ( closes #8578 )
15 years ago
Gerhard Haering
936d518dc8
#10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
15 years ago
Antoine Pitrou
5bfa0622ec
Issue #11688 : Add sqlite3.Connection.set_trace_callback(). Patch by Torsten Landschoff.
15 years ago
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
15 years ago
Brett Cannon
f7ef4de3d5
Merged revisions 88337 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88337 | brett.cannon | 2011-02-04 12:24:02 -0800 (Fri, 04 Feb 2011) | 5 lines
There was a possibility that the initialization of _sqlite, when it failed,
would lead to a decref of a NULL.
Fixes issue #11110 .
........
15 years ago
Brett Cannon
e144507b09
There was a possibility that the initialization of _sqlite, when it failed,
would lead to a decref of a NULL.
Fixes issue #11110 .
15 years ago
Georg Brandl
016cec75bd
Fix hash function type.
15 years ago
Martin v. Löwis
a2e7d9bdc1
Fix T_BOOL bug of issue 8845.
15 years ago
Florent Xicluna
c934f32e0a
Welcome to the UTF-8 world.
16 years ago