Lines 686-692
static int csvtabNext(sqlite3_vtab_cursor *cur){
Link Here
|
686 |
pCur->aLen[i] = 0; |
686 |
pCur->aLen[i] = 0; |
687 |
i++; |
687 |
i++; |
688 |
} |
688 |
} |
689 |
if( z==0 || pCur->rdr.cTerm==EOF ){ |
689 |
/* |
|
|
690 |
* HACK: truncate EOF to 'char' to make code |
691 |
* work equally (bad) on systems with signed |
692 |
* and unsigned char. Other wise platforms |
693 |
* with unsigned char loop indefinitely here. |
694 |
*/ |
695 |
if( z==0 || pCur->rdr.cTerm==(char)EOF ){ |
690 |
pCur->iRowid = -1; |
696 |
pCur->iRowid = -1; |
691 |
}else{ |
697 |
}else{ |
692 |
pCur->iRowid++; |
698 |
pCur->iRowid++; |
693 |
- |
|
|