diff options
| author | Georg Brandl <georg@python.org> | 2013-10-28 08:08:09 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2013-10-28 08:08:09 +0100 |
| commit | 03b9c293da396efd6df7fb0d980db0faa8bb4b49 (patch) | |
| tree | 9d1da9bb4648df90b7f435bc5eadc38c26da011e /Modules/_sqlite/module.c | |
| parent | bc3101edfd79f9d63af2f7503c94e1c5390f9074 (diff) | |
| parent | 8d7b2d90166762520cd2f911bb3bcaf71c41c98c (diff) | |
| download | cpython-03b9c293da396efd6df7fb0d980db0faa8bb4b49.tar.gz | |
null merge with 3.3
Diffstat (limited to 'Modules/_sqlite/module.c')
| -rw-r--r-- | Modules/_sqlite/module.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index bea6d6aba1..7a7e86040a 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -50,19 +50,26 @@ static PyObject* module_connect(PyObject* self, PyObject* args, PyObject* * C-level, so this code is redundant with the one in connection_init in * connection.c and must always be copied from there ... */ - static char *kwlist[] = {"database", "timeout", "detect_types", "isolation_level", "check_same_thread", "factory", "cached_statements", NULL, NULL}; + static char *kwlist[] = { + "database", "timeout", "detect_types", "isolation_level", + "check_same_thread", "factory", "cached_statements", "uri", + NULL + }; char* database; int detect_types = 0; PyObject* isolation_level; PyObject* factory = NULL; int check_same_thread = 1; int cached_statements; + int uri = 0; double timeout = 5.0; PyObject* result; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|diOiOi", kwlist, - &database, &timeout, &detect_types, &isolation_level, &check_same_thread, &factory, &cached_statements)) + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|diOiOip", kwlist, + &database, &timeout, &detect_types, + &isolation_level, &check_same_thread, + &factory, &cached_statements, &uri)) { return NULL; } @@ -77,7 +84,8 @@ static PyObject* module_connect(PyObject* self, PyObject* args, PyObject* } PyDoc_STRVAR(module_connect_doc, -"connect(database[, timeout, isolation_level, detect_types, factory])\n\ +"connect(database[, timeout, detect_types, isolation_level,\n\ + check_same_thread, factory, cached_statements, uri])\n\ \n\ Opens a connection to the SQLite database file *database*. You can use\n\ \":memory:\" to open a database connection to a database that resides in\n\ |
