Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 35862
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: Nobody in particular
Requestors: ASVBR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.2.2
  • 2.7.1
Fixed in: 2.7.2



Subject: Array: double-quoted text with comma
pg_expand_array is on, text element splitted after fetch: ['a','b,c'] --> '{a,"b,c"}' --> ['a','b,','c']
Thanks for the report, this has been fixed as of r11266, and will be a part of the just-released version 2.7.2. If you need a solution quick, this is the relevant patch: Index: dbdimp.c =================================================================== --- dbdimp.c (revision 11262) +++ dbdimp.c (working copy) @@ -2474,7 +2474,8 @@ if ('\\' == *input) { /* Eat backslashes */ input++; } - string[section_size++] = *input; + string[section_size++] = *input++; + continue; } else if ('{' == *input) { AV * const newav = newAV();