#At bzr+ssh://ahristov@stripped/bzrroot/public/connector-cpp-bzr/trunk/
243 andrey.hristov@stripped 2008-11-11 [merge]
merge
modified:
driver/mysql_connection.cpp
examples/connection_meta_schemaobj.cpp
=== modified file 'driver/mysql_connection.cpp'
--- a/driver/mysql_connection.cpp 2008-11-06 15:28:49 +0000
+++ b/driver/mysql_connection.cpp 2008-11-11 10:19:24 +0000
@@ -515,6 +515,7 @@ void
MySQL_Connection::setHoldability(int /* holdability */)
{
CPP_ENTER("MySQL_Connection::setHoldability");
+ throw sql::MethodNotImplementedException("MySQL_Connection::setHoldability()");
}
/* }}} */
@@ -529,7 +530,7 @@ MySQL_Connection::setReadOnly(bool /* re
/* }}} */
-/* {{{ MySQL_Connection::setSavepoint() -I- */
+/* {{{ MySQL_Connection::setSavepoint() -U- */
Savepoint *
MySQL_Connection::setSavepoint()
{
=== modified file 'examples/connection_meta_schemaobj.cpp'
--- a/examples/connection_meta_schemaobj.cpp 2008-11-11 09:58:32 +0000
+++ b/examples/connection_meta_schemaobj.cpp 2008-11-11 10:36:20 +0000
@@ -115,6 +115,18 @@ int main(int argc, const char **argv)
}
cout << "#" << endl;
+ cout << "#\t\t Using different getter methods at the example of the DDL column" << endl;
+ cout << "#\t\t Column DDL is of type " << res_meta->getColumnTypeName(5);
+ cout << " / Code: " << res_meta->getColumnType(5) << endl;
+ // scroll back to last row in set
+ res->previous();
+ cout << "#\t\t DDL (as String) = " << ddl.substr(0, ddl.find_first_of("\n", 1) - 1) << "..." << endl;
+ cout << "#\t\t DDL (as Boolean) = " << res->getBoolean("DDL") << "/" << res->getBoolean(5) << endl;
+ cout << "#\t\t DDL (as Double) = " << res->getDouble("DDL") << "/" << res->getDouble(5) << endl;
+ cout << "#\t\t DDL (as Int) = " << res->getInt("DDL") << "/" << res->getInt(5) << endl;
+ cout << "#\t\t DDL (as Long) = " << res->getLong("DDL") << "/" << res->getLong(5) << endl;
+ cout << "#" << endl;
+
cout << "#\t\t Meta data on the result set at the example of the DDL column" << endl;
cout << "#\t\t Column count = " << res_meta->getColumnCount() << " (Columns: ";
for (column = 1; column <= res_meta->getColumnCount(); column++) {
| Thread |
|---|
| • bzr commit into connector-cpp-bzr branch (andrey.hristov:243) | andrey.hristov | 11 Nov |