aboutsummaryrefslogtreecommitdiff
path: root/src/table.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2014-09-15 15:34:31 +0000
committerdan <dan@noemail.net>2014-09-15 15:34:31 +0000
commitd4a80e6742921478b369a9537302bc586c79d812 (patch)
tree6731ece80e9d8851555cad39c555482f1db1a006 /src/table.c
parentee8d0b4111b47bd91e9d3280e8540d3a560b0cc7 (diff)
parent907214c8e83a3d1f35b6cce5768016089193b3c2 (diff)
downloadsqlite-d4a80e6742921478b369a9537302bc586c79d812.tar.gz
sqlite-d4a80e6742921478b369a9537302bc586c79d812.zip
Merge latest trunk changes with this branch.
FossilOrigin-Name: 55b8011d5b455927f5b92a3cb911fd909fb0edab
Diffstat (limited to 'src/table.c')
-rw-r--r--src/table.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/table.c b/src/table.c
index 26bbfb4f4..12d0cf548 100644
--- a/src/table.c
+++ b/src/table.c
@@ -29,10 +29,10 @@
typedef struct TabResult {
char **azResult; /* Accumulated output */
char *zErrMsg; /* Error message text, if an error occurs */
- int nAlloc; /* Slots allocated for azResult[] */
- int nRow; /* Number of rows in the result */
- int nColumn; /* Number of columns in the result */
- int nData; /* Slots used in azResult[]. (nRow+1)*nColumn */
+ u32 nAlloc; /* Slots allocated for azResult[] */
+ u32 nRow; /* Number of rows in the result */
+ u32 nColumn; /* Number of columns in the result */
+ u32 nData; /* Slots used in azResult[]. (nRow+1)*nColumn */
int rc; /* Return code from sqlite3_exec() */
} TabResult;
@@ -58,7 +58,7 @@ static int sqlite3_get_table_cb(void *pArg, int nCol, char **argv, char **colv){
if( p->nData + need > p->nAlloc ){
char **azNew;
p->nAlloc = p->nAlloc*2 + need;
- azNew = sqlite3_realloc( p->azResult, sizeof(char*)*p->nAlloc );
+ azNew = sqlite3_realloc64( p->azResult, sizeof(char*)*p->nAlloc );
if( azNew==0 ) goto malloc_failed;
p->azResult = azNew;
}
@@ -182,7 +182,7 @@ int sqlite3_get_table(
** This routine frees the space the sqlite3_get_table() malloced.
*/
void sqlite3_free_table(
- char **azResult /* Result returned from from sqlite3_get_table() */
+ char **azResult /* Result returned from sqlite3_get_table() */
){
if( azResult ){
int i, n;