Commit b8954688 authored by jan.koester's avatar jan.koester
Browse files

test

parent 3b963b19
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ namespace blogi {
            ssql=new char[sql->length()];
            ssql=new char[sql->length()];
            memcpy(ssql,sql->c_str(),sql->length());
            memcpy(ssql,sql->c_str(),sql->length());
            sqlite3_stmt *prep;
            sqlite3_stmt *prep;
            int rcount = 0;
            int rcount = -1;


            if(res.firstRow){
            if(res.firstRow){
                delete res.firstRow;
                delete res.firstRow;
@@ -105,7 +105,7 @@ namespace blogi {


                    int i;
                    int i;


                    for(i=0; i < sqlite3_column_count(prep); ++i){
                    for(i=0; i < sqlite3_data_count(prep); ++i){
                        if(!res.firstRow){
                        if(!res.firstRow){
                            res.firstRow = new DBResult::Data(rcount,i,(const char*)sqlite3_column_text(prep,i),sqlite3_column_bytes(prep,i));
                            res.firstRow = new DBResult::Data(rcount,i,(const char*)sqlite3_column_text(prep,i),sqlite3_column_bytes(prep,i));
                            lastdat=res.firstRow;
                            lastdat=res.firstRow;
@@ -123,7 +123,7 @@ namespace blogi {
                    sqlite3_finalize(prep);
                    sqlite3_finalize(prep);
                    prep=next;
                    prep=next;
                }while(prep);
                }while(prep);
            }while(cssql<ssql+sql->length());
            }while(cssql);
            sqllock.store(false);
            sqllock.store(false);
            delete[] ssql;
            delete[] ssql;
            return rcount;
            return rcount;