本文整理汇总了C++中CDbStmt::RowCount方法的典型用法代码示例。如果您正苦于以下问题:C++ CDbStmt::RowCount方法的具体用法?C++ CDbStmt::RowCount怎么用?C++ CDbStmt::RowCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDbStmt
的用法示例。
在下文中一共展示了CDbStmt::RowCount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EvalRow
void qObjODBC::EvalRow(qCtx *ctx, qStr *out, qArgAry *args)
{
assert(myStmt.RowCount()!=-1);
if (myStmt.RowCount() == -1)
return;
out->PutN(myStmt.RowCount());
}
示例2: EvalColName
void qObjODBC::EvalColName(qCtx *ctx, qStr *out, qArgAry *args)
{
assert(myStmt.RowCount()!=-1);
if (myStmt.RowCount() == -1)
return;
CDbCol *col;
if ((col = GetEvalCol(ctx, args))) {
out->PutS(col->Name);
}
}
示例3: EvalCol
void qObjODBC::EvalCol(qCtx *ctx, qStr *out, qArgAry *args)
{
assert(myStmt.RowCount()!=-1);
if (myStmt.RowCount() == -1)
return;
CDbCol *col;
if ((col = GetEvalCol(ctx, args))) {
int ind = col->GetInd();
if (myStmt.HasData() && SQL_HAS_DATA(ind)) {
col->ConvBuf();
col->RTrim();
if (col->GetBuf() && *col->GetBuf())
out->PutS(col->GetBuf());
}
}
}
示例4: EvalColumn
void qObjODBC::EvalColumn(qCtx *ctx, qStr *out, qArgAry *args)
{
assert(myStmt.RowCount()!=-1);
if (myStmt.RowCount() == -1)
return;
CDbCol *col;
if ((col = GetEvalCol(ctx, args))) {
int ind = col->GetInd();
if (myStmt.HasData() && SQL_HAS_DATA(ind)) {
col->ConvBuf();
if (ind >= 0) {
int n = min((SQLINTEGER)ind, col->DispSize);
out->PutS(col->GetBuf(), n);
} else {
out->PutS(col->GetBuf());
}
}
}
}
示例5: EvalEnumCol
void qObjODBC::EvalEnumCol(qCtx *ctx, qStr *out, qArgAry *args)
{
assert(myStmt.RowCount()!=-1);
if (myStmt.RowCount() == -1)
return;
if (args->Count() == 0)
return;
int num, type, size;
const char *name=0;
const char *value=0;
bool ok = true;
qCtxTmp sub(ctx);
sub.MapObj(&num, "num");
sub.MapObj(&name, "name");
sub.MapObj(&value, "value");
sub.MapObj(&type, "type");
sub.MapObj(&size, "size");
sub.MapObj(&ok, (QOBJFUNC) EvalBreak, "break");
CDbCol *col;
for(num = 1; ok && num <= myStmt.ColCount(); ++num) {
col = myStmt.Column(num-1);
name = col->Name;
if (myStmt.HasData() && SQL_HAS_DATA(col->GetInd())) {
col->ConvBuf();
col->RTrim();
value = col->GetBuf();
} else {
value = 0;
}
type = col->Type;
size = col->Size;
sub.qCtx::Parse(args->GetAt(0), out);
}
}