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
8e7b4908
Kaydet (Commit)
8e7b4908
authored
Nis 05, 2006
tarafından
Anthony Baxter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
upgrade to final version of pysqlite 2.2.0
üst
c48c8db1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
38 deletions
+30
-38
cache.c
Modules/_sqlite/cache.c
+2
-2
connection.c
Modules/_sqlite/connection.c
+1
-1
cursor.c
Modules/_sqlite/cursor.c
+1
-1
microprotocols.c
Modules/_sqlite/microprotocols.c
+3
-12
module.c
Modules/_sqlite/module.c
+11
-11
module.h
Modules/_sqlite/module.h
+2
-0
prepare_protocol.c
Modules/_sqlite/prepare_protocol.c
+1
-1
row.c
Modules/_sqlite/row.c
+1
-1
statement.c
Modules/_sqlite/statement.c
+1
-1
_sqlite3.vcproj
PCbuild/_sqlite3.vcproj
+4
-4
setup.py
setup.py
+3
-4
No files found.
Modules/_sqlite/cache.c
Dosyayı görüntüle @
8e7b4908
...
@@ -262,7 +262,7 @@ static PyMethodDef cache_methods[] = {
...
@@ -262,7 +262,7 @@ static PyMethodDef cache_methods[] = {
PyTypeObject
NodeType
=
{
PyTypeObject
NodeType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Node"
,
/* tp_name */
MODULE_NAME
"Node"
,
/* tp_name */
sizeof
(
Node
),
/* tp_basicsize */
sizeof
(
Node
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
node_dealloc
,
/* tp_dealloc */
(
destructor
)
node_dealloc
,
/* tp_dealloc */
...
@@ -305,7 +305,7 @@ PyTypeObject NodeType = {
...
@@ -305,7 +305,7 @@ PyTypeObject NodeType = {
PyTypeObject
CacheType
=
{
PyTypeObject
CacheType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Cache"
,
/* tp_name */
MODULE_NAME
".Cache"
,
/* tp_name */
sizeof
(
Cache
),
/* tp_basicsize */
sizeof
(
Cache
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
cache_dealloc
,
/* tp_dealloc */
(
destructor
)
cache_dealloc
,
/* tp_dealloc */
...
...
Modules/_sqlite/connection.c
Dosyayı görüntüle @
8e7b4908
...
@@ -1029,7 +1029,7 @@ static struct PyMemberDef connection_members[] =
...
@@ -1029,7 +1029,7 @@ static struct PyMemberDef connection_members[] =
PyTypeObject
ConnectionType
=
{
PyTypeObject
ConnectionType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Connection"
,
/* tp_name */
MODULE_NAME
".Connection"
,
/* tp_name */
sizeof
(
Connection
),
/* tp_basicsize */
sizeof
(
Connection
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
connection_dealloc
,
/* tp_dealloc */
(
destructor
)
connection_dealloc
,
/* tp_dealloc */
...
...
Modules/_sqlite/cursor.c
Dosyayı görüntüle @
8e7b4908
...
@@ -977,7 +977,7 @@ static struct PyMemberDef cursor_members[] =
...
@@ -977,7 +977,7 @@ static struct PyMemberDef cursor_members[] =
PyTypeObject
CursorType
=
{
PyTypeObject
CursorType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Cursor"
,
/* tp_name */
MODULE_NAME
".Cursor"
,
/* tp_name */
sizeof
(
Cursor
),
/* tp_basicsize */
sizeof
(
Cursor
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
cursor_dealloc
,
/* tp_dealloc */
(
destructor
)
cursor_dealloc
,
/* tp_dealloc */
...
...
Modules/_sqlite/microprotocols.c
Dosyayı görüntüle @
8e7b4908
...
@@ -55,28 +55,19 @@ int
...
@@ -55,28 +55,19 @@ int
microprotocols_add
(
PyTypeObject
*
type
,
PyObject
*
proto
,
PyObject
*
cast
)
microprotocols_add
(
PyTypeObject
*
type
,
PyObject
*
proto
,
PyObject
*
cast
)
{
{
PyObject
*
key
;
PyObject
*
key
;
int
rc
;
if
(
proto
==
NULL
)
proto
=
(
PyObject
*
)
&
SQLitePrepareProtocolType
;
if
(
proto
==
NULL
)
proto
=
(
PyObject
*
)
&
SQLitePrepareProtocolType
;
/*
Dprintf("microprotocols_add: cast %p for (%s, ?)",
cast, type->tp_name);
*/
key
=
Py_BuildValue
(
"(OO)"
,
(
PyObject
*
)
type
,
proto
);
key
=
Py_BuildValue
(
"(OO)"
,
(
PyObject
*
)
type
,
proto
);
if
(
!
key
)
{
if
(
!
key
)
{
return
-
1
;
return
-
1
;
}
}
if
(
PyDict_SetItem
(
psyco_adapters
,
key
,
cast
)
!=
0
)
{
rc
=
PyDict_SetItem
(
psyco_adapters
,
key
,
cast
);
Py_DECREF
(
key
);
return
-
1
;
}
Py_DECREF
(
key
);
Py_DECREF
(
key
);
return
0
;
return
rc
;
}
}
/* microprotocols_adapt - adapt an object to the built-in protocol */
/* microprotocols_adapt - adapt an object to the built-in protocol */
...
...
Modules/_sqlite/module.c
Dosyayı görüntüle @
8e7b4908
...
@@ -214,56 +214,56 @@ PyMODINIT_FUNC init_sqlite3(void)
...
@@ -214,56 +214,56 @@ PyMODINIT_FUNC init_sqlite3(void)
/*** Create DB-API Exception hierarchy */
/*** Create DB-API Exception hierarchy */
if
(
!
(
Error
=
PyErr_NewException
(
"sqlite3
.Error"
,
PyExc_StandardError
,
NULL
)))
{
if
(
!
(
Error
=
PyErr_NewException
(
MODULE_NAME
"
.Error"
,
PyExc_StandardError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"Error"
,
Error
);
PyDict_SetItemString
(
dict
,
"Error"
,
Error
);
if
(
!
(
Warning
=
PyErr_NewException
(
"sqlite3
.Warning"
,
PyExc_StandardError
,
NULL
)))
{
if
(
!
(
Warning
=
PyErr_NewException
(
MODULE_NAME
"
.Warning"
,
PyExc_StandardError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"Warning"
,
Warning
);
PyDict_SetItemString
(
dict
,
"Warning"
,
Warning
);
/* Error subclasses */
/* Error subclasses */
if
(
!
(
InterfaceError
=
PyErr_NewException
(
"sqlite3
.InterfaceError"
,
Error
,
NULL
)))
{
if
(
!
(
InterfaceError
=
PyErr_NewException
(
MODULE_NAME
"
.InterfaceError"
,
Error
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"InterfaceError"
,
InterfaceError
);
PyDict_SetItemString
(
dict
,
"InterfaceError"
,
InterfaceError
);
if
(
!
(
DatabaseError
=
PyErr_NewException
(
"sqlite3
.DatabaseError"
,
Error
,
NULL
)))
{
if
(
!
(
DatabaseError
=
PyErr_NewException
(
MODULE_NAME
"
.DatabaseError"
,
Error
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"DatabaseError"
,
DatabaseError
);
PyDict_SetItemString
(
dict
,
"DatabaseError"
,
DatabaseError
);
/* DatabaseError subclasses */
/* DatabaseError subclasses */
if
(
!
(
InternalError
=
PyErr_NewException
(
"sqlite3
.InternalError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
InternalError
=
PyErr_NewException
(
MODULE_NAME
"
.InternalError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"InternalError"
,
InternalError
);
PyDict_SetItemString
(
dict
,
"InternalError"
,
InternalError
);
if
(
!
(
OperationalError
=
PyErr_NewException
(
"sqlite3
.OperationalError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
OperationalError
=
PyErr_NewException
(
MODULE_NAME
"
.OperationalError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"OperationalError"
,
OperationalError
);
PyDict_SetItemString
(
dict
,
"OperationalError"
,
OperationalError
);
if
(
!
(
ProgrammingError
=
PyErr_NewException
(
"sqlite3
.ProgrammingError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
ProgrammingError
=
PyErr_NewException
(
MODULE_NAME
"
.ProgrammingError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"ProgrammingError"
,
ProgrammingError
);
PyDict_SetItemString
(
dict
,
"ProgrammingError"
,
ProgrammingError
);
if
(
!
(
IntegrityError
=
PyErr_NewException
(
"sqlite3
.IntegrityError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
IntegrityError
=
PyErr_NewException
(
MODULE_NAME
"
.IntegrityError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"IntegrityError"
,
IntegrityError
);
PyDict_SetItemString
(
dict
,
"IntegrityError"
,
IntegrityError
);
if
(
!
(
DataError
=
PyErr_NewException
(
"sqlite3
.DataError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
DataError
=
PyErr_NewException
(
MODULE_NAME
"
.DataError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"DataError"
,
DataError
);
PyDict_SetItemString
(
dict
,
"DataError"
,
DataError
);
if
(
!
(
NotSupportedError
=
PyErr_NewException
(
"sqlite3
.NotSupportedError"
,
DatabaseError
,
NULL
)))
{
if
(
!
(
NotSupportedError
=
PyErr_NewException
(
MODULE_NAME
"
.NotSupportedError"
,
DatabaseError
,
NULL
)))
{
goto
error
;
goto
error
;
}
}
PyDict_SetItemString
(
dict
,
"NotSupportedError"
,
NotSupportedError
);
PyDict_SetItemString
(
dict
,
"NotSupportedError"
,
NotSupportedError
);
...
@@ -320,6 +320,6 @@ PyMODINIT_FUNC init_sqlite3(void)
...
@@ -320,6 +320,6 @@ PyMODINIT_FUNC init_sqlite3(void)
error:
error:
if
(
PyErr_Occurred
())
if
(
PyErr_Occurred
())
{
{
PyErr_SetString
(
PyExc_ImportError
,
"_sqlite3
: init failed"
);
PyErr_SetString
(
PyExc_ImportError
,
MODULE_NAME
"
: init failed"
);
}
}
}
}
Modules/_sqlite/module.h
Dosyayı görüntüle @
8e7b4908
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#define PYSQLITE_MODULE_H
#define PYSQLITE_MODULE_H
#include "Python.h"
#include "Python.h"
#define PYSQLITE_VERSION "2.2.0"
extern
PyObject
*
Error
;
extern
PyObject
*
Error
;
extern
PyObject
*
Warning
;
extern
PyObject
*
Warning
;
extern
PyObject
*
InterfaceError
;
extern
PyObject
*
InterfaceError
;
...
...
Modules/_sqlite/prepare_protocol.c
Dosyayı görüntüle @
8e7b4908
...
@@ -36,7 +36,7 @@ void prepare_protocol_dealloc(SQLitePrepareProtocol* self)
...
@@ -36,7 +36,7 @@ void prepare_protocol_dealloc(SQLitePrepareProtocol* self)
PyTypeObject
SQLitePrepareProtocolType
=
{
PyTypeObject
SQLitePrepareProtocolType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.PrepareProtocol"
,
/* tp_name */
MODULE_NAME
".PrepareProtocol"
,
/* tp_name */
sizeof
(
SQLitePrepareProtocol
),
/* tp_basicsize */
sizeof
(
SQLitePrepareProtocol
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
prepare_protocol_dealloc
,
/* tp_dealloc */
(
destructor
)
prepare_protocol_dealloc
,
/* tp_dealloc */
...
...
Modules/_sqlite/row.c
Dosyayı görüntüle @
8e7b4908
...
@@ -154,7 +154,7 @@ PyMappingMethods row_as_mapping = {
...
@@ -154,7 +154,7 @@ PyMappingMethods row_as_mapping = {
PyTypeObject
RowType
=
{
PyTypeObject
RowType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Row"
,
/* tp_name */
MODULE_NAME
".Row"
,
/* tp_name */
sizeof
(
Row
),
/* tp_basicsize */
sizeof
(
Row
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
row_dealloc
,
/* tp_dealloc */
(
destructor
)
row_dealloc
,
/* tp_dealloc */
...
...
Modules/_sqlite/statement.c
Dosyayı görüntüle @
8e7b4908
...
@@ -381,7 +381,7 @@ int check_remaining_sql(const char* tail)
...
@@ -381,7 +381,7 @@ int check_remaining_sql(const char* tail)
PyTypeObject
StatementType
=
{
PyTypeObject
StatementType
=
{
PyObject_HEAD_INIT
(
NULL
)
PyObject_HEAD_INIT
(
NULL
)
0
,
/* ob_size */
0
,
/* ob_size */
"pysqlite2.dbapi2.Statement"
,
/* tp_name */
MODULE_NAME
".Statement"
,
/* tp_name */
sizeof
(
Statement
),
/* tp_basicsize */
sizeof
(
Statement
),
/* tp_basicsize */
0
,
/* tp_itemsize */
0
,
/* tp_itemsize */
(
destructor
)
statement_dealloc
,
/* tp_dealloc */
(
destructor
)
statement_dealloc
,
/* tp_dealloc */
...
...
PCbuild/_sqlite3.vcproj
Dosyayı görüntüle @
8e7b4908
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
Name=
"VCCLCompilerTool"
Name=
"VCCLCompilerTool"
Optimization=
"0"
Optimization=
"0"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"_DEBUG;WIN32;_WINDOWS;
PYSQLITE_VERSION=\"2.2.0
\""
PreprocessorDefinitions=
"_DEBUG;WIN32;_WINDOWS;
MODULE_NAME=\"sqlite3
\""
RuntimeLibrary=
"3"
RuntimeLibrary=
"3"
UsePrecompiledHeader=
"2"
UsePrecompiledHeader=
"2"
WarningLevel=
"3"
WarningLevel=
"3"
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
Optimization=
"2"
Optimization=
"2"
InlineFunctionExpansion=
"1"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
AdditionalIncludeDirectories=
"..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
PYSQLITE_VERSION=\"2.2.0
\""
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
MODULE_NAME=\"sqlite3
\""
StringPooling=
"TRUE"
StringPooling=
"TRUE"
RuntimeLibrary=
"2"
RuntimeLibrary=
"2"
EnableFunctionLevelLinking=
"TRUE"
EnableFunctionLevelLinking=
"TRUE"
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
Optimization=
"2"
Optimization=
"2"
InlineFunctionExpansion=
"1"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl;{MSSDKPATH}\include\Win64\crt;{MSSDKPATH}\include\Win64\crt\sys;{MSSDKPATH}\include\Win64\mfc;..\Include;..\PC;..\..\sqlite-source-3.3.4"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl;{MSSDKPATH}\include\Win64\crt;{MSSDKPATH}\include\Win64\crt\sys;{MSSDKPATH}\include\Win64\mfc;..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
PYSQLITE_VERSION=\"2.2.0
\""
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
MODULE_NAME=\"sqlite3
\""
StringPooling=
"TRUE"
StringPooling=
"TRUE"
BasicRuntimeChecks=
"0"
BasicRuntimeChecks=
"0"
RuntimeLibrary=
"2"
RuntimeLibrary=
"2"
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
Optimization=
"2"
Optimization=
"2"
InlineFunctionExpansion=
"1"
InlineFunctionExpansion=
"1"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include;..\PC;..\..\sqlite-source-3.3.4"
AdditionalIncludeDirectories=
"{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include;..\PC;..\..\sqlite-source-3.3.4"
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
PYSQLITE_VERSION=\"2.2.0
\""
PreprocessorDefinitions=
"NDEBUG;WIN32;_WINDOWS;
MODULE_NAME=\"sqlite3
\""
StringPooling=
"TRUE"
StringPooling=
"TRUE"
BasicRuntimeChecks=
"0"
BasicRuntimeChecks=
"0"
RuntimeLibrary=
"2"
RuntimeLibrary=
"2"
...
...
setup.py
Dosyayı görüntüle @
8e7b4908
...
@@ -755,11 +755,10 @@ class PyBuildExt(build_ext):
...
@@ -755,11 +755,10 @@ class PyBuildExt(build_ext):
PYSQLITE_VERSION
=
"2.2.0"
PYSQLITE_VERSION
=
"2.2.0"
sqlite_defines
=
[]
sqlite_defines
=
[]
if
sys
.
platform
!=
"win32"
:
if
sys
.
platform
!=
"win32"
:
sqlite_defines
.
append
((
'PYSQLITE_VERSION'
,
sqlite_defines
.
append
((
'MODULE_NAME'
,
'"sqlite3"'
))
'"
%
s"'
%
PYSQLITE_VERSION
))
else
:
else
:
sqlite_defines
.
append
((
'
PYSQLITE_VERSION'
,
sqlite_defines
.
append
((
'
MODULE_NAME'
,
'
\\
"sqlite3
\\
"'
))
'
\\
"'
+
PYSQLITE_VERSION
+
'
\\
"'
))
sqlite_defines
.
append
((
'PY_MAJOR_VERSION'
,
sqlite_defines
.
append
((
'PY_MAJOR_VERSION'
,
str
(
sys
.
version_info
[
0
])))
str
(
sys
.
version_info
[
0
])))
sqlite_defines
.
append
((
'PY_MINOR_VERSION'
,
sqlite_defines
.
append
((
'PY_MINOR_VERSION'
,
...
...
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