void DBImpl:: executeBoolQuery(const std::string& q, bool&) { throw MethodNotImplementedException(); }
void DBImpl:: executeMultiRowQuery(const std::string& q, std::vector<std::map<std::string, std::string>>&) { if (driver.get() == NULL) initDriver(); throw MethodNotImplementedException(); }
/* {{{ MySQL_Connection::setClientOption() -I- */ sql::Connection * MySQL_Connection::setClientOption(const sql::SQLString & optionName, const void * optionValue) { CPP_ENTER_WL(intern->logger, "MySQL_Connection::setClientOption"); if (!optionName.compare("libmysql_debug")) { proxy->debug(static_cast<const char *>(optionValue)); } else if (!optionName.compare("clientTrace")) { if (*(static_cast<const bool *>(optionValue))) { intern->logger->enableTracing(); CPP_INFO("Tracing enabled"); } else { intern->logger->disableTracing(); CPP_INFO("Tracing disabled"); } } else if (!optionName.compare("characterSetResults")) { setSessionVariable("character_set_results", optionValue? static_cast<const char *>(optionValue) : sql::SQLString("NULL")); } else if (!optionName.compare("metadataUseInfoSchema")) { intern->metadata_use_info_schema = *(static_cast<const bool *>(optionValue)); } else if (!optionName.compare("defaultStatementResultType")) { int int_value = *static_cast<const int *>(optionValue); do { if (static_cast< int >(sql::ResultSet::TYPE_FORWARD_ONLY) == int_value) break; if (static_cast< int >(sql::ResultSet::TYPE_SCROLL_INSENSITIVE) == int_value) break; if (static_cast< int >(sql::ResultSet::TYPE_SCROLL_SENSITIVE) == int_value) { std::ostringstream msg; msg << "Invalid value " << int_value << " for option defaultStatementResultType. TYPE_SCROLL_SENSITIVE is not supported"; throw sql::InvalidArgumentException(msg.str()); } std::ostringstream msg; msg << "Invalid value (" << int_value << " for option defaultStatementResultType"; throw sql::InvalidArgumentException(msg.str()); } while (0); intern->defaultStatementResultType = static_cast< sql::ResultSet::enum_type >(int_value); } else if (!optionName.compare("defaultPreparedStatementResultType")) { #if WE_SUPPORT_USE_RESULT_WITH_PS /* The connector is not ready for unbuffered as we need to refetch */ intern->defaultPreparedStatementResultType = *(static_cast<const bool *>(optionValue)); #else throw MethodNotImplementedException("MySQL_Prepared_Statement::setResultSetType"); #endif } return this; }