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

Side by Side Diff: third_party/sqlite/src/ext/fts3/fts3_term.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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
OLDNEW
1 /* 1 /*
2 ** 2011 Jan 27 2 ** 2011 Jan 27
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 **
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int iIndex = 0; 74 int iIndex = 0;
75 75
76 UNUSED_PARAMETER(pCtx); 76 UNUSED_PARAMETER(pCtx);
77 if( argc==5 ){ 77 if( argc==5 ){
78 iIndex = atoi(argv[4]); 78 iIndex = atoi(argv[4]);
79 argc--; 79 argc--;
80 } 80 }
81 81
82 /* The user should specify a single argument - the name of an fts3 table. */ 82 /* The user should specify a single argument - the name of an fts3 table. */
83 if( argc!=4 ){ 83 if( argc!=4 ){
84 *pzErr = sqlite3_mprintf( 84 sqlite3Fts3ErrMsg(pzErr,
85 "wrong number of arguments to fts4term constructor" 85 "wrong number of arguments to fts4term constructor"
86 ); 86 );
87 return SQLITE_ERROR; 87 return SQLITE_ERROR;
88 } 88 }
89 89
90 zDb = argv[1]; 90 zDb = argv[1];
91 nDb = (int)strlen(zDb); 91 nDb = (int)strlen(zDb);
92 zFts3 = argv[3]; 92 zFts3 = argv[3];
93 nFts3 = (int)strlen(zFts3); 93 nFts3 = (int)strlen(zFts3);
94 94
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 0 /* xRollbackTo */ 364 0 /* xRollbackTo */
365 }; 365 };
366 int rc; /* Return code */ 366 int rc; /* Return code */
367 367
368 rc = sqlite3_create_module(db, "fts4term", &fts3term_module, 0); 368 rc = sqlite3_create_module(db, "fts4term", &fts3term_module, 0);
369 return rc; 369 return rc;
370 } 370 }
371 371
372 #endif 372 #endif
373 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */ 373 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts3/fts3_snippet.c ('k') | third_party/sqlite/src/ext/fts3/fts3_tokenize_vtab.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698