summaryrefslogtreecommitdiffstats
path: root/reladminif
diff options
context:
space:
mode:
Diffstat (limited to 'reladminif')
-rw-r--r--reladminif/sqlerror.pgc4
1 files changed, 2 insertions, 2 deletions
diff --git a/reladminif/sqlerror.pgc b/reladminif/sqlerror.pgc
index 94d41a3..09141bb 100644
--- a/reladminif/sqlerror.pgc
+++ b/reladminif/sqlerror.pgc
@@ -112,7 +112,7 @@ void disp_sqlstate_err(char* msgbuf, size_t length)
char error_buffer[BUFFER_SIZE];
size_t characters_written = 0;
- snprintf(error_buffer, BUFFER_SIZE, "SQLSTATE: %5s SQLCODE: %d\n", SQLSTATE, SQLCODE);
+ snprintf(error_buffer, BUFFER_SIZE, "SQLSTATE: %5s SQLCODE: %ld\n", SQLSTATE, SQLCODE);
characters_written = strlen(error_buffer);
if (characters_written > length)
{
@@ -180,7 +180,7 @@ check(const char* stmt) throw (r_Error)
if (msg != NULL)
{
RMInit::logOut << msg << endl;
- snprintf(lastErrorMsg, LASTERRORMSGLEN, msg);
+ snprintf(lastErrorMsg, LASTERRORMSGLEN,"%s\n" , msg);
delete [] msg;
msg = NULL;
}