예제 #1
0
 void dbRecord::AddField(const char* fname, const char* sValue)
 {
     AddToStatement(fname);
     temp[index].sValue = sValue; //conn->esc(sValue).c_str();
     temp[index].type = SQL_TYPE_STRING;
     index++;
 }
예제 #2
0
 void dbRecord::AddField(const char* fname, unsigned short usValue)
 {
     AddToStatement(fname);
     temp[index].iValue = usValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
예제 #3
0
 void dbRecord::AddField(const char* fname, int iValue)
 {
     AddToStatement(fname);
     temp[index].iValue = iValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
예제 #4
0
 void dbRecord::AddField(const char* fname, float fValue)
 {
     AddToStatement(fname);
     temp[index].fValue = fValue;
     temp[index].type = SQL_TYPE_FLOAT;
     index++;
 }
예제 #5
0
파일: ast.c 프로젝트: rainyx/luadec
AstStatement* MakeIfStatement(char* test) {
	AstStatement* ifstmt = MakeBlockStatement(IF_STMT, test);
	AddToStatement(ifstmt, MakeBlockStatement(IF_THEN_STMT, NULL));
	AddToStatement(ifstmt, MakeBlockStatement(IF_ELSE_STMT, NULL));
	return ifstmt;
}
예제 #6
0
 void dbRecord::AddFieldNull(const char* fname)
 {
     AddToStatement(fname);
     temp[index].type = SQL_TYPE_NULL;
     index++;
 }