mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
From: Michael Meskes <meskes@topsystem.de>
+ Wed Jun 3 13:38:57 CEST 1998 + + - Made sqlca struct compatible with other systems. + - Give back a warning in case of truncation + - Changed the handling of OptimizableStmt since the old one broke + CREATE RULE + - Set library version to 2.3 + - Set version to 2.3.3
This commit is contained in:
@@ -38,7 +38,7 @@ static FILE *debugstream = NULL;
|
||||
static int committed = true;
|
||||
|
||||
static void
|
||||
register_error(int code, char *fmt,...)
|
||||
register_error(long code, char *fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
@@ -131,9 +131,9 @@ ECPGdo(int lineno, char *query,...)
|
||||
long offset, ind_offset;
|
||||
enum ECPGttype ind_type;
|
||||
|
||||
memset((char *) &sqlca, 0, sizeof (sqlca));
|
||||
va_start(ap, query);
|
||||
|
||||
sqlca.sqlcode = 0;
|
||||
copiedquery = strdup(query);
|
||||
|
||||
type = va_arg(ap, enum ECPGttype);
|
||||
@@ -666,6 +666,7 @@ ECPGdo(int lineno, char *query,...)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
sqlca.sqlwarn[0] = sqlca.sqlwarn[1] = 'W';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -702,6 +703,7 @@ ECPGdo(int lineno, char *query,...)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
sqlca.sqlwarn[0] = sqlca.sqlwarn[1] = 'W';
|
||||
|
||||
var->len = varcharsize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user