summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/module.c
diff options
context:
space:
mode:
authorGerhard Häring <gh@ghaering.de>2008-09-12 18:58:57 (GMT)
committerGerhard Häring <gh@ghaering.de>2008-09-12 18:58:57 (GMT)
commit6e1afcf9883f13bdf8808dc528e381f5c90a131b (patch)
treea40283fbad084a0d1cb378ce349a0e707fef1b17 /Modules/_sqlite/module.c
parentef2276b60d2345af49c8268f3a23feb59f5ecc38 (diff)
downloadcpython-6e1afcf9883f13bdf8808dc528e381f5c90a131b.zip
cpython-6e1afcf9883f13bdf8808dc528e381f5c90a131b.tar.gz
cpython-6e1afcf9883f13bdf8808dc528e381f5c90a131b.tar.bz2
Fixes issue #3103. In the sqlite3 module, made one more function static. All renaming public symbos now have the pysqlite prefix to avoid name clashes. This at least once created problems where the same symbol name appeared somewhere in Apache and the sqlite3 module was used from mod_python.
Diffstat (limited to 'Modules/_sqlite/module.c')
-rw-r--r--Modules/_sqlite/module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 7640e92..cd28609 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -160,7 +160,7 @@ static PyObject* module_register_adapter(PyObject* self, PyObject* args)
pysqlite_BaseTypeAdapted = 1;
}
- rc = microprotocols_add(type, (PyObject*)&pysqlite_PrepareProtocolType, caster);
+ rc = pysqlite_microprotocols_add(type, (PyObject*)&pysqlite_PrepareProtocolType, caster);
if (rc == -1)
return NULL;
@@ -244,8 +244,8 @@ static PyMethodDef module_methods[] = {
METH_VARARGS, module_register_adapter_doc},
{"register_converter", (PyCFunction)module_register_converter,
METH_VARARGS, module_register_converter_doc},
- {"adapt", (PyCFunction)psyco_microprotocols_adapt, METH_VARARGS,
- psyco_microprotocols_adapt_doc},
+ {"adapt", (PyCFunction)pysqlite_adapt, METH_VARARGS,
+ pysqlite_adapt_doc},
{"enable_callback_tracebacks", (PyCFunction)enable_callback_tracebacks,
METH_VARARGS, enable_callback_tracebacks_doc},
{NULL, NULL}
@@ -423,7 +423,7 @@ PyMODINIT_FUNC init_sqlite3(void)
Py_DECREF(tmp_obj);
/* initialize microprotocols layer */
- microprotocols_init(dict);
+ pysqlite_microprotocols_init(dict);
/* initialize the default converters */
converters_init(dict);