Date: Thursday, January 5, 2006 @ 16:22:13
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: simpletest.c (1.1 -> 1.2)
testing SQLRowCount
--------------+
simpletest.c | 8 ++++++++
1 files changed, 8 insertions(+)
Index: odbsequoia/src/simpletest.c
diff -u odbsequoia/src/simpletest.c:1.1 odbsequoia/src/simpletest.c:1.2
--- odbsequoia/src/simpletest.c:1.1 Thu Dec 22 19:55:20 2005
+++ odbsequoia/src/simpletest.c Thu Jan 5 16:22:13 2006
@@ -2,6 +2,8 @@
#include <sql.h>
#include <sqlucode.h>
+#include <stdio.h>
+
// !log_info.log_flag && !ODBCSharedTraceFlag
@@ -43,5 +45,11 @@
SQL_NTS) != SQL_SUCCESS)
return 6;
+ SQLINTEGER uc = 0;
+ if (SQLRowCount(hstmt, &uc) != SQL_SUCCESS)
+ return 7;
+
+ printf ("%ld rows were updated\n", uc);
+
return 0;
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits