Home
last modified time | relevance | path

Searched refs:nRow (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dtable.c33 int nRow; /* Number of rows in the result */ member
53 if( p->nRow==0 && argv!=0 ){ in sqlite3_get_table_cb()
69 if( p->nRow==0 ){ in sqlite3_get_table_cb()
99 p->nRow++; in sqlite3_get_table_cb()
134 res.nRow = 0; in sqlite3_get_table()
177 if( pnRow ) *pnRow = res.nRow; in sqlite3_get_table()
Dwhere.c1653 double nRow = 0; in bestOrClauseIndex() local
1676 nRow += sTermCost.plan.nRow; in bestOrClauseIndex()
1685 rTotal, rTotal+nRow*estLog(nRow))); in bestOrClauseIndex()
1686 rTotal += nRow*estLog(nRow); in bestOrClauseIndex()
1692 WHERETRACE(("... multi-index OR cost=%.9g nrow=%.9g\n", rTotal, nRow)); in bestOrClauseIndex()
1696 pCost->plan.nRow = nRow; in bestOrClauseIndex()
1780 pCost->plan.nRow = logN + 1; in bestAutomaticIndex()
2757 double nRow; /* Estimated number of rows in result set */ in bestBtreeIndex() local
2934 nRow = (double)(aiRowEst[nEq] * nInMul); in bestBtreeIndex()
2935 if( bInEst && nRow*2>aiRowEst[0] ){ in bestBtreeIndex()
[all …]
Dtest8.c779 int nRow; in echoBestIndex() local
812 nRow = sqlite3_column_int(pStmt, 0); in echoBestIndex()
899 if( nRow & (1<<ii) ){ in echoBestIndex()
904 pIdxInfo->estimatedCost = (double)nRow; in echoBestIndex()
Dshell.c1232 int nRow = 0; in dump_callback() local
1261 nRow++; in dump_callback()
1264 if( rc!=SQLITE_OK || nRow==0 ){ in dump_callback()
2116 int nRow; in do_meta_command() local
2127 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2138 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2153 for(i=1; i<=nRow; i++){ in do_meta_command()
2160 nPrintRow = (nRow + nPrintCol - 1)/nPrintCol; in do_meta_command()
2162 for(j=i+1; j<=nRow; j+=nPrintRow){ in do_meta_command()
Dvdbeaux.c1127 int nRow; /* Stop when row count reaches this */ in sqlite3VdbeList() local
1160 nRow = p->nOp; in sqlite3VdbeList()
1175 nRow += apSub[i]->nOp; in sqlite3VdbeList()
1181 }while( i<nRow && p->explain==2 && p->aOp[i].opcode!=OP_Explain ); in sqlite3VdbeList()
1182 if( i>=nRow ){ in sqlite3VdbeList()
Dtest1.c584 int nRow, nCol; in test_get_table_printf() local
604 rc = sqlite3_get_table(db, zSql, &aResult, &nRow, &nCol, &zErr); in test_get_table_printf()
605 resCount = (nRow+1)*nCol; in test_get_table_printf()
612 sprintf(zBuf, "%d", nRow); in test_get_table_printf()
/external/chromium_org/third_party/sqlite/src/tool/
Dspeedtest16.c82 int nRow = 0; in prepareAndRun() local
84 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; } in prepareAndRun()
88 rc, nRow, iElapse); in prepareAndRun()
Dspeedtest8.c74 int nRow = 0; in prepareAndRun() local
76 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; } in prepareAndRun()
81 rc, nRow, iElapse); in prepareAndRun()
Dspeedtest8inst1.c55 int nRow = 0; in prepareAndRun() local
60 while( (rc=sqlite3_step(pStmt))==SQLITE_ROW ){ nRow++; } in prepareAndRun()
/external/chromium_org/third_party/sqlite/src/ext/rtree/
Drtree_util.tcl94 set nRow [$db one "SELECT count(*) FROM ${zTab}"]
101 if {$nRow != $nRowid} {
/external/chromium_org/third_party/sqlite/src/test/
Dioerr5.test85 set nRow [db one {SELECT count(*) FROM a}]
150 } [expr $nRow+1]
174 set nRow [db one {SELECT count(*) FROM a}]
Dwalfault.test517 set nRow [db eval {SELECT count(*) FROM abc}]
518 if {!(($nRow==2 && $testrc) || $nRow==3)} { error "Bad db content" }
547 set nRow [db eval {SELECT count(*) FROM abc}]
548 if {!(($nRow==2 && $testrc) || $nRow==3)} { error "Bad db content" }
Dincrvacuum.test396 set ::nRow 0
401 incr ::nRow
403 list [expr {[file size test.db] / 1024}] $nRow
434 set ::nRow 0
436 incr ::nRow
437 if {$::nRow == $::iWrite} {
453 if {$::nRow == $::iWrite} break
Dselect9.test53 set nRow [expr {[llength $result] / $nCol}]
63 if {[info exists ::G(isquick)] && $::G(isquick) && $nRow>=5} {
64 set iOffsetIncr [expr $nRow / 5]
65 set iLimitIncr [expr $nRow / 5]
68 set iLimitEnd [expr $nRow+$iLimitIncr]
69 set iOffsetEnd [expr $nRow+$iOffsetIncr]
Dfts3matchinfo.test126 set nRow 0
128 if {[llength $res]>$nRow} { set nRow [llength $res] }
137 for {set iRow 0} {$iRow<$nRow} {incr iRow} {
162 for {set iRow 0} {$iRow<$nRow} {incr iRow} {
Dtkt2565.test53 set nRow [db one {SELECT count(*) FROM a}]
Dfts3rnd.test293 set nRow [llength $rows]
294 set iUpdate [lindex $rows [expr {int(rand()*$nRow)}]]
297 set iDelete [lindex $rows [expr {int(rand()*$nRow)}]]
Dtester.tcl431 set nRow 0
432 db eval $sql {incr nRow}
433 uplevel do_test ${prefix}.$tn [list [list set {} $nRow]] [list $res]
Dthreadtest3.c1154 i64 nRow; in walthread5_thread() local
1157 nRow = execsql_i64(&err, &db, "SELECT count(*) FROM t1"); in walthread5_thread()
1160 if( nRow!=65536 ) test_error(&err, "Bad row count: %d", (int)nRow); in walthread5_thread()
De_select.test971 # Set $nRow to the number of rows returned by $select:
973 set nRow 0
974 while {"SQLITE_ROW" == [sqlite3_step $::stmt]} { incr nRow }
977 # Test that $nRow==1 and that statement execution was successful
979 do_test e_select-4.$tn [list list $rc $nRow] {SQLITE_OK 1}
/external/sqlite/dist/
Dshell.c1294 int nRow = 0; in dump_callback() local
1329 nRow++; in dump_callback()
1332 if( rc!=SQLITE_OK || nRow==0 ){ in dump_callback()
2217 int nRow; in do_meta_command() local
2228 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2239 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2254 for(i=1; i<=nRow; i++){ in do_meta_command()
2261 nPrintRow = (nRow + nPrintCol - 1)/nPrintCol; in do_meta_command()
2263 for(j=i+1; j<=nRow; j+=nPrintRow){ in do_meta_command()
Dsqlite3.c10795 double nRow; /* Estimated number of rows (for EQP) */ member
60675 int nRow; /* Stop when row count reaches this */
60709 nRow = p->nOp;
60724 nRow += apSub[i]->nOp;
60730 }while( i<nRow && p->explain==2 && p->aOp[i].opcode!=OP_Explain );
60731 if( i>=nRow ){
79514 tRowcnt nRow; /* Number of rows in the entire table */
79546 tRowcnt nRow;
79551 nRow = (tRowcnt)sqlite3_value_int64(argv[0]);
79561 p->nRow = nRow;
[all …]
/external/sqlite/dist/orig/
Dshell.c1289 int nRow = 0; in dump_callback() local
1324 nRow++; in dump_callback()
1327 if( rc!=SQLITE_OK || nRow==0 ){ in dump_callback()
2198 int nRow; in do_meta_command() local
2209 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2220 &azResult, &nRow, 0, &zErrMsg in do_meta_command()
2235 for(i=1; i<=nRow; i++){ in do_meta_command()
2242 nPrintRow = (nRow + nPrintCol - 1)/nPrintCol; in do_meta_command()
2244 for(j=i+1; j<=nRow; j+=nPrintRow){ in do_meta_command()
Dsqlite3.c10795 double nRow; /* Estimated number of rows (for EQP) */ member
60647 int nRow; /* Stop when row count reaches this */
60681 nRow = p->nOp;
60696 nRow += apSub[i]->nOp;
60702 }while( i<nRow && p->explain==2 && p->aOp[i].opcode!=OP_Explain );
60703 if( i>=nRow ){
79478 tRowcnt nRow; /* Number of rows in the entire table */
79510 tRowcnt nRow;
79515 nRow = (tRowcnt)sqlite3_value_int64(argv[0]);
79525 p->nRow = nRow;
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c10246 double nRow; /* Estimated number of rows (for EQP) */ member
58431 int nRow; /* Stop when row count reaches this */
58464 nRow = p->nOp;
58479 nRow += apSub[i]->nOp;
58485 }while( i<nRow && p->explain==2 && p->aOp[i].opcode!=OP_Explain );
58486 if( i>=nRow ){
94627 int nRow; /* Number of rows in the result */
94647 if( p->nRow==0 && argv!=0 ){
94663 if( p->nRow==0 ){
94693 p->nRow++;
[all …]

12