Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ffa3357d
Kaydet (Commit)
ffa3357d
authored
May 04, 2008
tarafından
Gerhard Häring
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONG
#ifdefing was useless.
üst
7e3ab455
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
statement.c
Modules/_sqlite/statement.c
+0
-4
No files found.
Modules/_sqlite/statement.c
Dosyayı görüntüle @
ffa3357d
...
@@ -100,9 +100,7 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec
...
@@ -100,9 +100,7 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec
{
{
int
rc
=
SQLITE_OK
;
int
rc
=
SQLITE_OK
;
long
longval
;
long
longval
;
#ifdef HAVE_LONG_LONG
PY_LONG_LONG
longlongval
;
PY_LONG_LONG
longlongval
;
#endif
const
char
*
buffer
;
const
char
*
buffer
;
char
*
string
;
char
*
string
;
Py_ssize_t
buflen
;
Py_ssize_t
buflen
;
...
@@ -157,13 +155,11 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec
...
@@ -157,13 +155,11 @@ int pysqlite_statement_bind_parameter(pysqlite_Statement* self, int pos, PyObjec
longval
=
PyInt_AsLong
(
parameter
);
longval
=
PyInt_AsLong
(
parameter
);
rc
=
sqlite3_bind_int64
(
self
->
st
,
pos
,
(
sqlite_int64
)
longval
);
rc
=
sqlite3_bind_int64
(
self
->
st
,
pos
,
(
sqlite_int64
)
longval
);
break
;
break
;
#ifdef HAVE_LONG_LONG
case
TYPE_LONG
:
case
TYPE_LONG
:
longlongval
=
PyLong_AsLongLong
(
parameter
);
longlongval
=
PyLong_AsLongLong
(
parameter
);
/* in the overflow error case, longlongval is -1, and an exception is set */
/* in the overflow error case, longlongval is -1, and an exception is set */
rc
=
sqlite3_bind_int64
(
self
->
st
,
pos
,
(
sqlite_int64
)
longlongval
);
rc
=
sqlite3_bind_int64
(
self
->
st
,
pos
,
(
sqlite_int64
)
longlongval
);
break
;
break
;
#endif
case
TYPE_FLOAT
:
case
TYPE_FLOAT
:
rc
=
sqlite3_bind_double
(
self
->
st
,
pos
,
PyFloat_AsDouble
(
parameter
));
rc
=
sqlite3_bind_double
(
self
->
st
,
pos
,
PyFloat_AsDouble
(
parameter
));
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment