Diff of /trunk/cgi-bin/yabb3/YaBB3/DataSource/File.pm [r175] .. [r176]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/cgi-bin/yabb3/YaBB3/DataSource/File.pm
+++ b/trunk/cgi-bin/yabb3/YaBB3/DataSource/File.pm
@@ -85,7 +85,12 @@
 
 sub prepare {
     my ($self, $sql) = @_;
+
+    # add a couple things that SQL::Parser/Statement don't seem to support
+    $sql =~ s/(--.*)$/$2/mg; # /m makes $ match any EOL
     my $stmt = YaBB3::DataSource::File::Statement->new($sql, $parser);
+
+
     my $sth = {
         database        => $self->{config}{database},
         stmt            => $stmt,

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks