/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | threadtest1.c | 61 const char *zFile; /* Filename - used for error reporting */ member 86 fprintf(stdout,"%s: malloc failed\n", pResult->zFile); in db_query_callback() 102 char **db_query(sqlite *db, const char *zFile, const char *zFormat, ...){ in db_query() argument 112 sResult.zFile = zFile; in db_query() 113 if( verbose ) printf("QUERY %s: %s\n", zFile, zSql); in db_query() 119 if( verbose ) printf("DONE %s %s\n", zFile, zSql); in db_query() 121 fprintf(stdout,"%s: query failed: %s - %s\n", zFile, zSql, zErrMsg); in db_query() 137 void db_execute(sqlite *db, const char *zFile, const char *zFormat, ...){ in db_execute() argument 145 if( verbose ) printf("EXEC %s: %s\n", zFile, zSql); in db_execute() 151 if( verbose ) printf("DONE %s: %s\n", zFile, zSql); in db_execute() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | attach.c | 29 char *zFile, *zName; in sqliteAttach() local 50 zFile = 0; in sqliteAttach() 51 sqliteSetNString(&zFile, pFilename->z, pFilename->n, 0); in sqliteAttach() 52 if( zFile==0 ) return; in sqliteAttach() 53 sqliteDequote(zFile); in sqliteAttach() 55 if( sqliteAuthCheck(pParse, SQLITE_ATTACH, zFile, 0, 0)!=SQLITE_OK ){ in sqliteAttach() 56 sqliteFree(zFile); in sqliteAttach() 69 sqliteFree(zFile); in sqliteAttach() 90 rc = sqliteBtreeFactory(db, zFile, 0, MAX_PAGES, &aNew->pBt); in sqliteAttach() 92 sqliteErrorMsg(pParse, "unable to open database: %s", zFile); in sqliteAttach() [all …]
|
H A D | copy.c | 40 char *zFile = 0; in sqliteCopy() local 49 zFile = sqliteStrNDup(pFilename->z, pFilename->n); in sqliteCopy() 50 sqliteDequote(zFile); in sqliteCopy() 54 || sqliteAuthCheck(pParse, SQLITE_COPY, pTab->zName, zFile, zDb) ){ in sqliteCopy() 108 sqliteFree(zFile); in sqliteCopy()
|
H A D | util.c | 55 void *sqliteMalloc_(int n, int bZero, char *zFile, int line){ in sqliteMalloc_() argument 65 n, zFile,line); in sqliteMalloc_() 86 ++memcnt, n, (int)p, zFile,line); in sqliteMalloc_() 116 void sqliteFree_(void *p, char *zFile, int line){ in sqliteFree_() argument 139 ++memcnt, n, (int)p, zFile,line); in sqliteFree_() 150 void *sqliteRealloc_(void *oldP, int n, char *zFile, int line){ in sqliteRealloc_() argument 154 return sqliteMalloc_(n,1,zFile,line); in sqliteRealloc_() 157 sqliteFree_(oldP,zFile,line); in sqliteRealloc_() 193 ++memcnt, oldN, n, (int)oldP, (int)p, zFile, line); in sqliteRealloc_() 223 char *sqliteStrDup_(const char *z, char *zFile, int line){ in sqliteStrDup_() argument [all …]
|
H A D | tclsqlite.c | 1029 const char *zFile; in DbMain() local 1087 zFile = Tcl_GetStringFromObj(objv[2], 0); in DbMain() 1089 p->db = sqlite_open_encrypted(zFile, pKey, nKey, 0, &zErrMsg); in DbMain() 1091 p->db = sqlite_open(zFile, mode, &zErrMsg); in DbMain()
|
H A D | pager.c | 902 static int sqlitepager_opentemp(char *zFile, OsFile *fd){ in sqlitepager_opentemp() argument 907 sqliteOsTempFileName(zFile); in sqlitepager_opentemp() 908 rc = sqliteOsOpenExclusive(zFile, fd, 1); in sqlitepager_opentemp()
|