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/ecpglib/descriptor.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/ecpglib/descriptor.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/descriptor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c index df9ea295344..457ee04df5f 100644 --- a/src/interfaces/ecpg/ecpglib/descriptor.c +++ b/src/interfaces/ecpg/ecpglib/descriptor.c @@ -1,6 +1,6 @@ /* dynamic SQL support routines * - * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.29 2008/01/15 10:31:47 meskes Exp $ + * $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.30 2008/05/16 15:20:03 petere Exp $ */ #define POSTGRES_ECPG_INTERNAL @@ -99,7 +99,7 @@ ECPGget_desc_header(int lineno, const char *desc_name, int *count) *count = PQnfields(ECPGresult); sqlca->sqlerrd[2] = 1; - ecpg_log("ECPGget_desc_header: found %d attributes.\n", *count); + ecpg_log("ECPGget_desc_header: found %d attributes\n", *count); return true; } @@ -381,7 +381,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...) */ if (arrsize > 0 && ntuples > arrsize) { - ecpg_log("ECPGget_desc line %d: Incorrect number of matches: %d don't fit into array of %d\n", + ecpg_log("ECPGget_desc on line %d: incorrect number of matches; %d don't fit into array of %d\n", lineno, ntuples, arrsize); ecpg_raise(lineno, ECPG_TOO_MANY_MATCHES, ECPG_SQLSTATE_CARDINALITY_VIOLATION, NULL); return false; @@ -450,7 +450,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...) */ if (data_var.ind_arrsize > 0 && ntuples > data_var.ind_arrsize) { - ecpg_log("ECPGget_desc line %d: Incorrect number of matches (indicator): %d don't fit into array of %d\n", + ecpg_log("ECPGget_desc on line %d: incorrect number of matches (indicator); %d don't fit into array of %d\n", lineno, ntuples, data_var.ind_arrsize); ecpg_raise(lineno, ECPG_TOO_MANY_MATCHES, ECPG_SQLSTATE_CARDINALITY_VIOLATION, NULL); return false; @@ -724,6 +724,6 @@ ecpg_find_desc(int line, const char *name) bool ECPGdescribe(int line, bool input, const char *statement,...) { - ecpg_log("ECPGdescribe called on line %d for %s in %s\n", line, (input) ? "input" : "output", statement); + ecpg_log("ECPGdescribe called on line %d for %s: %s\n", line, (input) ? _("input") : _("output"), statement); return false; } |