~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Modules/_sqlite/connection.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
765
765
    int narg;
766
766
    int rc;
767
767
 
 
768
    if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
 
769
        return NULL;
 
770
    }
 
771
 
768
772
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "siO", kwlist,
769
773
                                     &name, &narg, &func))
770
774
    {
794
798
    static char *kwlist[] = { "name", "n_arg", "aggregate_class", NULL };
795
799
    int rc;
796
800
 
 
801
    if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
 
802
        return NULL;
 
803
    }
 
804
 
797
805
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "siO:create_aggregate",
798
806
                                      kwlist, &name, &n_arg, &aggregate_class)) {
799
807
        return NULL;
884
892
    static char *kwlist[] = { "authorizer_callback", NULL };
885
893
    int rc;
886
894
 
 
895
    if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
 
896
        return NULL;
 
897
    }
 
898
 
887
899
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:set_authorizer",
888
900
                                      kwlist, &authorizer_cb)) {
889
901
        return NULL;
909
921
 
910
922
    static char *kwlist[] = { "progress_handler", "n", NULL };
911
923
 
 
924
    if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
 
925
        return NULL;
 
926
    }
 
927
 
912
928
    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "Oi:set_progress_handler",
913
929
                                      kwlist, &progress_handler, &n)) {
914
930
        return NULL;
1020
1036
    PyObject* weakref;
1021
1037
    int rc;
1022
1038
 
 
1039
    if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
 
1040
        return NULL;
 
1041
    }
 
1042
 
1023
1043
    if (!PyArg_ParseTuple(args, "O", &sql)) {
1024
1044
        return NULL;
1025
1045
    }