Exemplo n.º 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++;
 }
Exemplo n.º 2
0
 void dbRecord::AddField(const char* fname, unsigned short usValue)
 {
     AddToStatement(fname);
     temp[index].iValue = usValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
Exemplo n.º 3
0
 void dbRecord::AddField(const char* fname, int iValue)
 {
     AddToStatement(fname);
     temp[index].iValue = iValue;
     temp[index].type = SQL_TYPE_INT;
     index++;
 }
Exemplo n.º 4
0
 void dbRecord::AddField(const char* fname, float fValue)
 {
     AddToStatement(fname);
     temp[index].fValue = fValue;
     temp[index].type = SQL_TYPE_FLOAT;
     index++;
 }
Exemplo n.º 5
0
Arquivo: ast.c Projeto: 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;
}
Exemplo n.º 6
0
 void dbRecord::AddFieldNull(const char* fname)
 {
     AddToStatement(fname);
     temp[index].type = SQL_TYPE_NULL;
     index++;
 }