[Bps-public-commit] dbix-searchbuilder branch, quote-table-names, repushed

Aaron Trevena ast at bestpractical.com
Mon Sep 7 09:53:53 EDT 2020


The branch quote-table-names was deleted and repushed:
       was f77f2b07393142284921ee929f758274f02a2dca
       now 74d3f7eab9f14bb649e14fff4c9511aa46d83d22

1:  f79ae6c ! 1:  78ea626 Add support for automatic quoting of table names
    @@ -281,14 +281,6 @@
              "DELETE FROM $table WHERE id IN ", [],
              $query, @query_binds
     @@
    -     my $table = shift;
    - 
    -     my $cache = \%DBIx::SearchBuilder::Handle::FIELDS_IN_TABLE;
    -+    $table = $self->QuoteName($table) if ($self->{'QuoteTableNames'});
    -     unless ( $cache->{ lc $table } ) {
    -         my $sth = $self->dbh->column_info( undef, undef, $table, '%' )
    -             or return ();
    -@@
          return "TIMESTAMPDIFF(SECOND, $args{'From'}, $args{'To'})";
      }
      
2:  a5ea8fe = 2:  a68a3a6 Update tests for mysql 8 and table quoting option
3:  f77f2b0 ! 3:  74d3f7e Update Changes with quoted table names update
    @@ -8,7 +8,8 @@
     @@
      Revision history for Perl extension DBIx::SearchBuilder.
      
    -+ - New option to quote tablenames, initially for MySQL
    ++ - New option to quote tablenames in queries, enabled automatically for MySQL 8
    ++ - Updated tests for new MySQL 8 reserved words and tablename quoting
     +
      1.68 2020-07-06
       - Avoid segmentation faults on disconnect on MariaDB 10.2+



More information about the Bps-public-commit mailing list