Skip to content

Commit c4f0434

Browse files
committed
length issue for particular data type
1 parent 76dc248 commit c4f0434

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

informix_auditing/audit_util.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ mi_string *do_castl(MI_CONNECTION *conn, MI_DATUM *datum,
7676
if (strcmp("datetime", srcType) == 0) {
7777
return (mi_datetime_to_string((mi_datetime *)datum));
7878
}
79-
if (strcmp("integer", srcType) == 0) {
79+
if ((strcmp("integer", srcType) == 0) ||
80+
(strcmp("bigint", srcType) == 0) ||
81+
(strcmp("int8", srcType) == 0) ||
82+
(strcmp("serial", srcType) == 0) ||
83+
(strcmp("bigserial", srcType) == 0) ||
84+
(strcmp("serial8", srcType) == 0) ||
85+
(strcmp("smallint", srcType) == 0)) {
8086
collen = 30;
8187
}
8288
fn = mi_cast_get(conn, tid, lvar_id, &status);

0 commit comments

Comments
 (0)