~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to psycopg/cursor_type.c

  • Committer: Federico Di Gregorio
  • Date: 2005-01-20 05:49:40 UTC
  • Revision ID: fog-7e871bddd10637cd35a35849556d0b49b4be53b4
License changes. Fixes. Added register_adapter().

Show diffs side-by-side

added added

removed removed

Lines of Context:
895
895
#define psyco_curs_copy_from_doc \
896
896
"copy_from(file, table, sep='\\t', null='NULL') -> copy file to table."
897
897
 
 
898
static int
 
899
_psyco_curs_copy_from_check(PyObject *o)
 
900
{
 
901
    if (PyObject_GetAttrString(o, "write")
 
902
        return 1;
 
903
        else
 
904
        
 
905
}
 
906
 
898
907
static PyObject *
899
908
psyco_curs_copy_from(cursorObject *self, PyObject *args)
900
909
{