blob: 819c5c8905bc258c9f8482183e071616700c6314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 3aadae7eb3602f3ab893343045aa30d427985534 Mon Sep 17 00:00:00 2001
From: Charles Leifer <coleifer@gmail.com>
Date: Thu, 1 May 2025 07:38:07 -0500
Subject: [PATCH] Remove long check for newer cython.
Fixes #2987
---
playhouse/_sqlite_ext.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/playhouse/_sqlite_ext.pyx b/playhouse/_sqlite_ext.pyx
index 41df21870..93b71cb52 100644
--- a/playhouse/_sqlite_ext.pyx
+++ b/playhouse/_sqlite_ext.pyx
@@ -326,7 +326,7 @@ cdef sqlite_to_python(int argc, sqlite3_value **params):
cdef python_to_sqlite(sqlite3_context *context, value):
if value is None:
sqlite3_result_null(context)
- elif isinstance(value, (int, long)):
+ elif isinstance(value, int):
sqlite3_result_int64(context, <sqlite3_int64>value)
elif isinstance(value, float):
sqlite3_result_double(context, <double>value)
|