Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: third_party/sqlite/src/src/table.c

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Remove misc change. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/src/status.c ('k') | third_party/sqlite/src/src/tclsqlite.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2001 September 15 2 ** 2001 September 15
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
11 ************************************************************************* 11 *************************************************************************
12 ** This file contains the sqlite3_get_table() and sqlite3_free_table() 12 ** This file contains the sqlite3_get_table() and sqlite3_free_table()
13 ** interface routines. These are just wrappers around the main 13 ** interface routines. These are just wrappers around the main
14 ** interface routine of sqlite3_exec(). 14 ** interface routine of sqlite3_exec().
15 ** 15 **
16 ** These routines are in a separate files so that they will not be linked 16 ** These routines are in a separate files so that they will not be linked
17 ** if they are not used. 17 ** if they are not used.
18 **
19 ** $Id: table.c,v 1.40 2009/04/10 14:28:00 drh Exp $
20 */ 18 */
21 #include "sqliteInt.h" 19 #include "sqliteInt.h"
22 #include <stdlib.h> 20 #include <stdlib.h>
23 #include <string.h> 21 #include <string.h>
24 22
25 #ifndef SQLITE_OMIT_GET_TABLE 23 #ifndef SQLITE_OMIT_GET_TABLE
26 24
27 /* 25 /*
28 ** This structure is used to pass data from sqlite3_get_table() through 26 ** This structure is used to pass data from sqlite3_get_table() through
29 ** to the callback function is uses to build the result. 27 ** to the callback function is uses to build the result.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 int i, n; 188 int i, n;
191 azResult--; 189 azResult--;
192 assert( azResult!=0 ); 190 assert( azResult!=0 );
193 n = SQLITE_PTR_TO_INT(azResult[0]); 191 n = SQLITE_PTR_TO_INT(azResult[0]);
194 for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); } 192 for(i=1; i<n; i++){ if( azResult[i] ) sqlite3_free(azResult[i]); }
195 sqlite3_free(azResult); 193 sqlite3_free(azResult);
196 } 194 }
197 } 195 }
198 196
199 #endif /* SQLITE_OMIT_GET_TABLE */ 197 #endif /* SQLITE_OMIT_GET_TABLE */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/status.c ('k') | third_party/sqlite/src/src/tclsqlite.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698