/ Check-in [6f07968e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix to the "copy" method in the TCL interface. Ticket #3039. (CVS 4975)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f07968ec4c9d773a852ecc8343df416d17af2a4
User & Date: drh 2008-04-10 13:42:56
Context
2008-04-10
14:00
Make sure changes to virtual tables are counted the same as real tables. Ticket #3038. (CVS 4976) check-in: 55591fc4 user: drh tags: trunk
13:42
Fix to the "copy" method in the TCL interface. Ticket #3039. (CVS 4975) check-in: 6f07968e user: drh tags: trunk
13:38
Document the fast that the result flag combinations to sqlite3_open_v2() that are not defined in the documentation results in undefined behavior. Ticket #3037. (CVS 4974) check-in: b390e1f7 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tclsqlite.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** A TCL Interface to SQLite.  Append this file to sqlite3.c and
    13     13   ** compile the whole thing to build a TCL-enabled version of SQLite.
    14     14   **
    15         -** $Id: tclsqlite.c,v 1.213 2008/04/04 12:21:09 drh Exp $
           15  +** $Id: tclsqlite.c,v 1.214 2008/04/10 13:42:56 drh Exp $
    16     16   */
    17     17   #include "tcl.h"
    18     18   #include <errno.h>
    19     19   
    20     20   /*
    21     21   ** Some additional include files are needed if this file is not
    22     22   ** appended to the amalgamation.
................................................................................
  1295   1295     **   $db copy $conflit_algo $table_name $filename \t \\N
  1296   1296     */
  1297   1297     case DB_COPY: {
  1298   1298       char *zTable;               /* Insert data into this table */
  1299   1299       char *zFile;                /* The file from which to extract data */
  1300   1300       char *zConflict;            /* The conflict algorithm to use */
  1301   1301       sqlite3_stmt *pStmt;        /* A statement */
  1302         -    int rc;                     /* Result code */
  1303   1302       int nCol;                   /* Number of columns in the table */
  1304   1303       int nByte;                  /* Number of bytes in an SQL string */
  1305   1304       int i, j;                   /* Loop counters */
  1306   1305       int nSep;                   /* Number of bytes in zSep[] */
  1307   1306       int nNull;                  /* Number of bytes in zNull[] */
  1308   1307       char *zSql;                 /* An SQL statement */
  1309   1308       char *zLine;                /* A single line of input from the file */