Skip to content

Commit

Permalink
Item14373: always check the call when adding columns to a SELECT :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot committed Apr 9, 2017
1 parent 8b413ad commit fb90686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Contrib/DBIStoreContrib.pm
Expand Up @@ -21,8 +21,8 @@ use Foswiki ();
use Foswiki::Func ();
use DBI ();

our $VERSION = '1.3'; # plugin version is also locked to this
our $RELEASE = '9 Mar 2017';
our $VERSION = '1.4'; # plugin version is also locked to this
our $RELEASE = '9 Apr 2017';

# Global options, used to control tracing etc throughout the module
our %TRACE = (
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Contrib/DBIStoreContrib/Personality.pm
Expand Up @@ -124,7 +124,7 @@ sub get_columns {
SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = '$table'
SQL
my $s = $this->{dbh}->selectcol_arrayref($sql);
my $s = $this->{dbh}->selectall_arrayref($sql);
return { map { ( $_->[0] => $_->[1] ) } @$s };
}

Expand Down

0 comments on commit fb90686

Please sign in to comment.