[o2on-svn] [76] FIX: #12130 SQL結果件数の誤表示

Zurück zum Archiv-Index

o2on svn commit o2on-****@lists*****
2008年 4月 21日 (月) 12:38:42 JST


Revision: 76
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=76
Author:   electrolysis
Date:     2008-04-21 12:38:42 +0900 (Mon, 21 Apr 2008)

Log Message:
-----------
FIX: #12130 SQL結果件数の誤表示

Ticket Links:
:-----------
    http://sourceforge.jp/projects/o2on/tracker/detail/12130

Modified Paths:
--------------
    branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp

Modified: branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp
===================================================================
--- branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp	2008-04-19 07:01:24 UTC (rev 75)
+++ branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp	2008-04-21 03:38:42 UTC (rev 76)
@@ -298,16 +298,11 @@
 		goto error;
 
 	if (out.empty()) {
-		//ˆês–Ú
 		cols.clear();
 		get_column_names(stmt, cols);
 		out.push_back(cols);
-		cols.clear();
-		get_columns(stmt, cols);
-		out.push_back(cols);
 	}
-	while (sqlite3_step(stmt) == SQLITE_ROW) {
-		//2s–ڈȍ~
+	for ( ; err == SQLITE_ROW; err = sqlite3_step(stmt)) {
 		cols.clear();
 		get_columns(stmt, cols);
 		out.push_back(cols);




o2on-svn メーリングリストの案内
Zurück zum Archiv-Index