Skip Menu |
 

This queue is for tickets about the GitDDL CPAN distribution.

Report information
The Basics
Id: 86317
Status: open
Priority: 0/
Queue: GitDDL

People
Owner: typester [...] gmail.com
Requestors: KALGAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: Problem with deploy
Download (untitled) / with headers
text/plain 518b
When records in database contains single quotes ('), there is an SQL error: DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''<p>Are&nbsp' at line 2 at /usr/local/share/perl/5.10.1/GitDDL.pm line 191. Maybe will be better using placeholders or something like this (from DBI manual): my $rows_deleted = $dbh->do(q{ DELETE FROM table WHERE status = ? }, undef, 'DONE') or die $dbh->errstr;
Sorry, problem on line 189. It's working wrong if there is a ";" symbol in database field.
Download (untitled) / with headers
text/plain 218b
On Fri Jun 21 18:54:12 2013, KALGAN wrote: Show quoted text
> Sorry, problem on line 189. > It's working wrong if there is a ";" symbol in database field.
This is a Pull Request with fix — https://github.com/typester/GitDDL/pull/11


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.