SQL定義
REPLACE FUNCTION GetQueryBandExample()
RETURNS VARCHAR(6159) CHARACTER SET UNICODE
LANGUAGE C
NO SQL
PARAMETER STYLE TD_GENERAL
EXTERNAL NAME 'CS!GetQBExample!GetQBExample.c';
C関数定義
#define SQL_TEXT Latin_Text
#include<string.h>
#include<sqltypes_td.h>
extern void
FNC_GetQueryBandU(void *QBandBuf,
int BufSize,
int *QBandLen);
/****************************************************/
void GetQueryBandExample (
VARCHAR_UNICODE *QBandBuf,
char sqlstate[6])
{
int QBandLen;
int MaxQBLen;
MaxQBLen = FNC_MAXQUERYBANDSIZE_U;
FNC_GetQueryBandU(QBandBuf, MaxQBLen, &QBandLen);
return;
}