You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE UNIQUE INDEX t_role_tcd_unique_index ON dino.t_role USING btree (tenant_id,
code,(CASE WHEN (del_flag = 1) THEN id ELSE (del_flag)::bigint END));
cannot be parsed
int main()
{
PgQueryPlpgsqlParseResult result;
//目前无法解析的sql
result =
pg_query_parse_plpgsql("CREATE UNIQUE INDEX t_role_tcd_unique_index ON dino.t_role USING btree (tenant_id, \
code,(CASE WHEN (del_flag = 1) THEN id ELSE (del_flag)::bigint END));");
if (result.error) {
printf("error: %s at %d\n", result.error->message, result.error->cursorpos);
}
else {
printf("%s\n", result.plpgsql_funcs);
}
sql:
CREATE UNIQUE INDEX t_role_tcd_unique_index ON dino.t_role USING btree (tenant_id,
code,(CASE WHEN (del_flag = 1) THEN id ELSE (del_flag)::bigint END));
cannot be parsed
int main()
{
PgQueryPlpgsqlParseResult result;
code,(CASE WHEN (del_flag = 1) THEN id ELSE (del_flag)::bigint END));");
if (result.error) {
printf("error: %s at %d\n", result.error->message, result.error->cursorpos);
}
else {
printf("%s\n", result.plpgsql_funcs);
}
}
result.plpgsql_funcs output as []
The text was updated successfully, but these errors were encountered: