diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2008-05-16 15:20:04 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2008-05-16 15:20:04 +0000 |
commit | e1bdd07c3c33d4004180506f1493efcbbbc02b4c (patch) | |
tree | 4b277572297bc7280a8e073e2e0931413e25d0fd /src/interfaces/ecpg/compatlib/informix.c | |
parent | 4eb0900768a3eb880ab5cb267fa27b46de559433 (diff) | |
download | postgresql-e1bdd07c3c33d4004180506f1493efcbbbc02b4c.tar.gz postgresql-e1bdd07c3c33d4004180506f1493efcbbbc02b4c.zip |
Add localization support to ecpg.
Author: Euler Taveira de Oliveira <euler@timbira.com>
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r-- | src/interfaces/ecpg/compatlib/informix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index 485c86cf243..c3c8749cf8f 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.54 2008/01/08 01:14:52 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.55 2008/05/16 15:20:03 petere Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -1004,7 +1004,7 @@ ECPG_informix_set_var(int number, void *pointer, int lineno) sqlca->sqlcode = ECPG_OUT_OF_MEMORY; strncpy(sqlca->sqlstate, "YE001", sizeof("YE001")); - snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), "Out of memory in line %d.", lineno); + snprintf(sqlca->sqlerrm.sqlerrmc, sizeof(sqlca->sqlerrm.sqlerrmc), _("out of memory on line %d"), lineno); sqlca->sqlerrm.sqlerrml = strlen(sqlca->sqlerrm.sqlerrmc); /* free all memory we have allocated for the user */ ECPGfree_auto_mem(); |