Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: fenlisesi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.5.0
Fixed in: 2.5.1



Subject: negative pid on Win32 causes DEALLOCATE errs.
In dbdimp.c (as far as I can see) the name of the prepared statement is created using sprintf( imp_sth->prepare_name, "dbdpg_%d_%d", imp_dbh->pid_number, imp_dbh->prepare_number); The "pid_number" for a Win32 thread can be negative, which causes a syntax error, because postgres does not like, for example, DEALLOCATE dbdpg_-3228_1 Could an abs fix this? Cheers.
Thanks for the report. A fix was committed and will be a part of version 2.5.1 (r11056)