Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[DBD::Pg] Typo in sprintf for get_info() SQL_DATA_SOURCE_NAME. Thanks to Craig A. James for spotting this. (RT 106604)

0 views
Skip to first unread message

dbdpg-...@bucardo.org

unread,
Aug 21, 2015, 7:15:03 PM8/21/15
to dbd-pg-...@perl.org
Committed by Greg Sabino Mullane <gr...@endpoint.com>

Typo in sprintf for get_info() SQL_DATA_SOURCE_NAME. Thanks
to Craig A. James for spotting this. (RT 106604)

---
Pg.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Pg.pm b/Pg.pm
index c08a444..9a7e9b2 100644
--- a/Pg.pm
+++ b/Pg.pm
@@ -1332,7 +1332,7 @@ use 5.008001;
10021 => ['SQL_ASYNC_MODE', 2 ], ## SQL_AM_STATEMENT
120 => ['SQL_BATCH_ROW_COUNT', 2 ], ## SQL_BRC_EXPLICIT
121 => ['SQL_BATCH_SUPPORT', 3 ], ## 12 SELECT_PROC + ROW_COUNT_PROC
- 2 => ['SQL_DATA_SOURCE_NAME', sub { sprintf 'dbi:Pg:%', shift->{Name} } ],
+ 2 => ['SQL_DATA_SOURCE_NAME', sub { sprintf 'dbi:Pg:%s', shift->{Name} } ],
3 => ['SQL_DRIVER_HDBC', 0 ], ## not applicable
135 => ['SQL_DRIVER_HDESC', 0 ], ## not applicable
4 => ['SQL_DRIVER_HENV', 0 ], ## not applicable
--
1.8.4

0 new messages