Cubrid7.3 Linux 버전에서 테스트중입니다.
2)와 같은 소스를 컴파일 하면 아래와 같은 오류가 납니다.
확인 부탁드립니다.
sp_com.ec:26:18: warning: missing terminating \" character
sp_com.ec: In function \'sp_em_common_create\':
sp_com.ec:26: error: missing terminating \" character
sp_com.ec:28: error: \'service_type\' undeclared (first use in this function)
sp_com.ec:28: error: (Each undeclared identifier is reported only once
sp_com.ec:28: error: for each function it appears in.)
sp_com.ec:28: error: expected \')\' before \'CHAR\'
sp_com.ec:29:4: warning: missing terminating \" character
sp_com.ec:29: error: missing terminating \" character
sp_com.ec:26: error: expected \')\' before \'uci_end\'
sp_com.ec:26: error: too few arguments to function \'uci_static\'
sp_com.ec:26: error: expected \';\' before \'}\' token
gcc: sp_com.o: No such file or directory
1) 정상컴파일
void common_create(DB_OBJECT *obj, DB_VALUE *rtn)
{
exec sqlx create class em_banlist( service_type CHAR(2) NOT NULL);
db_make_int(rtn, 0);
}
2) 컴파일 오류
void sp_em_common_create(DB_OBJECT *obj, DB_VALUE *rtn)
{
exec sqlx create class em_banlist
(
service_type CHAR(2) NOT NULL
);
db_make_int(rtn, 0);
}
|