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++;
 }
 void dbRecord::AddField(const char* fname, unsigned short usValue)
 {
     AddToStatement(fname);
     temp[index].iValue = usValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
 void dbRecord::AddField(const char* fname, int iValue)
 {
     AddToStatement(fname);
     temp[index].iValue = iValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
 void dbRecord::AddField(const char* fname, float fValue)
 {
     AddToStatement(fname);
     temp[index].fValue = fValue;
     temp[index].type = SQL_TYPE_FLOAT;
     index++;
 }
Exemple #5
0
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;
}
 void dbRecord::AddFieldNull(const char* fname)
 {
     AddToStatement(fname);
     temp[index].type = SQL_TYPE_NULL;
     index++;
 }