comparison Framework/MySQL/MySQLResult.cpp @ 16:9e419261f1c9

mysql storage area working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Jul 2018 10:10:35 +0200
parents 5a97c68a7a51
children 714c5d2bee76
comparison
equal deleted inserted replaced
15:dfc7002add9c 16:9e419261f1c9
34 int code = mysql_stmt_fetch(statement_.GetObject()); 34 int code = mysql_stmt_fetch(statement_.GetObject());
35 35
36 if (code == 1) 36 if (code == 1)
37 { 37 {
38 unsigned int error = mysql_errno(database_.GetObject()); 38 unsigned int error = mysql_errno(database_.GetObject());
39
39 if (error == 0) 40 if (error == 0)
40 { 41 {
41 // This case can occur if the SQL request is not a SELECT 42 // This case occurs in requests without a result (e.g. if the
43 // SQL request is not a SELECT)
42 done_ = true; 44 done_ = true;
43 } 45 }
44 else if (error == CR_SERVER_GONE_ERROR || 46 else if (error == CR_SERVER_GONE_ERROR ||
45 error == CR_SERVER_LOST || 47 error == CR_SERVER_LOST ||
46 error == ER_QUERY_INTERRUPTED) 48 error == ER_QUERY_INTERRUPTED)