[svn:DBD-Pg] r14559 - DBD-Pg/trunk

[email protected]
Newsgroups gmane.comp.db.postgresql.dbdpg.cvs
Message-ID <[email protected]>
Author: turnstep
Date: Wed Dec  1 12:58:44 2010
New Revision: 14559

Modified:
   DBD-Pg/trunk/Changes
   DBD-Pg/trunk/quote.c

Log:
Function dequote_bytea returning void should not try to return something [Dagobert Michelsen] (CPAN bug #63497)


Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes	(original)
+++ DBD-Pg/trunk/Changes	Wed Dec  1 12:58:44 2010
@@ -8,9 +8,11 @@
     [Rainer Weikusat] (CPAN bug #63408)
   - Fix memory leak in pg_db_cancel (missing PQclear)
     [Rainer Weikusat] (CPAN bug #63441)
+  - Function dequote_bytea returning void should not try to return something
+    [Dagobert Michelsen] (CPAN bug #63497)
   - Fix the number of tests to skip in t/01connect.t when the $DBI_DSN
     environment variable lacks a database specification. [David E. Wheeler]
-  - Fix algorithm for skiping tests in t/06bytea.t when running on a version
+  - Fix algorithm for skipping tests in t/06bytea.t when running on a version
     of PostgreSQL lower than 9.0. [David E. Wheeler]
 
 2.17.2 Released November 21, 2010 (subversion r14542)

Modified: DBD-Pg/trunk/quote.c
==============================================================================
--- DBD-Pg/trunk/quote.c	(original)
+++ DBD-Pg/trunk/quote.c	Wed Dec  1 12:58:44 2010
@@ -529,9 +529,10 @@
 		return;
 
 	if ('\\' == *string && 'x' == *(string+1))
-		return _dequote_bytea_hex(string, retlen, estring);
+		_dequote_bytea_hex(string, retlen, estring);
 	else
-		return _dequote_bytea_escape(string, retlen, estring);
+		_dequote_bytea_escape(string, retlen, estring);
+	return;
 }
 
 /*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.