Skip to content

Commit 9eba3f3

Browse files
author
Tomoaki Nishiyama
committed
As pointed out by PR#119
1 parent a297a29 commit 9eba3f3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

RPostgreSQL/DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RPostgreSQL
2-
Version: 0.7-3
3-
Date: 2021-10-22
2+
Version: 0.7-4
3+
Date: 2021-11-29
44
Title: R Interface to the 'PostgreSQL' Database System
55
Author: Joe Conway, Dirk Eddelbuettel, Tomoaki Nishiyama, Sameer Kumar Prayaga (during 2008), Neil Tiffin
66
Maintainer: Tomoaki Nishiyama <tomoakin@staff.kanazawa-u.ac.jp>

RPostgreSQL/src/RS-DBI.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,20 +593,18 @@ RS_DBI_setException(Db_Handle * handle, DBI_EXCEPTION exceptionType, int errorNu
593593
void
594594
RS_DBI_errorMessage(char *msg, DBI_EXCEPTION exception_type)
595595
{
596-
char *driver = "RS-DBI"; /* TODO: use the actual driver name */
597-
598596
switch (exception_type) {
599597
case RS_DBI_MESSAGE:
600-
Rf_warning("%s driver message: (%s)", driver); /* was PRINT_IT */
598+
Rf_warning("RPosgreSQL message: %s", msg); /* was PRINT_IT */
601599
break;
602600
case RS_DBI_WARNING:
603-
Rf_warning("%s driver warning: (%s)", driver);
601+
Rf_warning("RPosgreSQL warning: %s", msg);
604602
break;
605603
case RS_DBI_ERROR:
606-
Rf_error("%s driver: (%s)", driver);
604+
Rf_error("RPosgreSQL error: %s", msg);
607605
break;
608606
case RS_DBI_TERMINATE:
609-
Rf_error("%s driver fatal: (%s)", driver); /* was TERMINATE */
607+
Rf_error("RPosgreSQL fatal: %s", msg); /* was TERMINATE */
610608
break;
611609
}
612610
return;

0 commit comments

Comments
 (0)