本文整理汇总了C++中CPP_INFO_FMT函数的典型用法代码示例。如果您正苦于以下问题:C++ CPP_INFO_FMT函数的具体用法?C++ CPP_INFO_FMT怎么用?C++ CPP_INFO_FMT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CPP_INFO_FMT函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CPP_ENTER
/* {{{ MySQL_ArtResultSetMetaData::getColumnCount() -I- */
unsigned int
MySQL_ArtResultSetMetaData::getColumnCount()
{
CPP_ENTER("MySQL_ArtResultSetMetaData::getColumnCount");
CPP_INFO_FMT("this=%p", this);
CPP_INFO_FMT("column_count=%d", num_fields);
return num_fields;
}
示例2: CPP_ENTER
/* {{{ MySQL_ConstructedResultSetMetaData::getColumnCount() -I- */
unsigned int
MySQL_ConstructedResultSetMetaData::getColumnCount()
{
CPP_ENTER("MySQL_ConstructedResultSetMetaData::getColumnCount");
CPP_INFO_FMT("this=%p", this);
CPP_INFO_FMT("column_count=%d", parent->num_fields);
return parent->num_fields;
}
示例3: CPP_ENTER
/* {{{ MySQL_PreparedResultSetMetaData::getPrecision -I- */
unsigned int
MySQL_PreparedResultSetMetaData::getPrecision(unsigned int columnIndex)
{
CPP_ENTER("MySQL_PreparedResultSetMetaData::getPrecision");
CPP_INFO_FMT("this=%p", this);
checkColumnIndex(columnIndex);
unsigned int ret = getFieldMeta(columnIndex)->max_length - getScale(columnIndex);
CPP_INFO_FMT("column=%u precision=%d", columnIndex, ret);
return ret;
}
示例4: CPP_ENTER_WL
/* {{{ MySQL_Connection::prepareStatement() -I- */
sql::PreparedStatement *
MySQL_Connection::prepareStatement(const sql::SQLString& sql)
{
CPP_ENTER_WL(intern->logger, "MySQL_Connection::prepareStatement");
CPP_INFO_FMT("query=%s", sql.c_str());
checkClosed();
boost::shared_ptr< NativeAPI::NativeStatementWrapper > stmt;
//TODO change - probably no need to catch and throw here. Logging can be done inside proxy
try {
stmt.reset(&proxy->stmt_init());
} catch (sql::SQLException& e) {
CPP_ERR_FMT("No statement : %d:(%s) %s", proxy->errNo(), proxy->sqlstate().c_str(), proxy->error().c_str());
throw e;
}
if (stmt->prepare(sql)) {
CPP_ERR_FMT("Cannot prepare %d:(%s) %s", stmt->errNo(), stmt->sqlstate().c_str(), stmt->error().c_str());
sql::SQLException e(stmt->error(), stmt->sqlstate(), stmt->errNo());
stmt.reset();
throw e;
}
return new MySQL_Prepared_Statement(stmt, this, intern->defaultPreparedStatementResultType, intern->logger);
}
示例5: CPP_ENTER
/* {{{ MySQL_ArtResultSet::checkValid() -I- */
void
MySQL_ArtResultSet::checkValid() const
{
CPP_ENTER("MySQL_ArtResultSet::checkValid");
CPP_INFO_FMT("this=%p", this);
if (isClosed()) {
throw sql::InvalidInstanceException("ResultSet has been closed");
}
}
示例6: CPP_ENTER
/* {{{ MySQL_ArtResultSetMetaData::getColumnTypeName() -I- */
SQLString
MySQL_ArtResultSetMetaData::getColumnTypeName(unsigned int columnIndex)
{
CPP_ENTER("MySQL_ArtResultSetMetaData::getColumnTypeName");
CPP_INFO_FMT("this=%p", this);
checkColumnIndex(columnIndex);
return "VARCHAR";
}