Skip to content

Commit 76dc248

Browse files
author
informix
committed
integer datatype length issue
1 parent 91d1e7e commit 76dc248

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

informix_auditing/audit_util.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ 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) {
80+
collen = 30;
81+
}
7982
fn = mi_cast_get(conn, tid, lvar_id, &status);
8083
if (NULL == fn) {
8184
switch(status) {
@@ -103,7 +106,7 @@ mi_string *do_castl(MI_CONNECTION *conn, MI_DATUM *datum,
103106
precision = mi_type_precision(tdesc);
104107

105108
printf("rputine read initiated \n");
106-
109+
printf("rputine read initiated %ld\n",collen);
107110
new_datum = mi_routine_exec(conn, fn, &ret, datum, collen, precision, fp);
108111
printf("routine read completed \n");
109112
pbuf = mi_lvarchar_to_string(new_datum);

informix_auditing/auditing2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
#include "audit_util.h"
3434

35-
#define LOGGERFILEPREFIX "/tmp/audit"
35+
#define LOGGERFILEPREFIX "/mnt/efsifxpg/audit"
3636

3737
typedef struct chains {
3838
mi_integer seq;

0 commit comments

Comments
 (0)