On Tue Feb 28, 2017 at 07:37:17PM +0100, Jonas B. Nielsen wrote:
> 
> - Would it be possible to have FetchHashKeyName preserve case? so if
> a database was using camelCase this would be preserved.

A quick test seems to produce what you are looking for with the default
setting of "NAME":

    #!/usr/bin/env perl
    use strict;
    use warnings;
    use Data::Dumper;
    use DBI;

    my $db  = DBI->connect('dbi:SQLite:db=:memory:');
    my $sth = $db->prepare(q{SELECT 1 AS CamelCase});
    $sth->execute;

    print Dumper( $sth->fetchrow_hashref );

    # Output is:
    # $VAR1 = {
    #          'CamelCase' => 1
    #        };

What kind of behaviour were you expecting?

Mark
-- 
Mark Lawrence

Attachment: signature.asc
Description: Digital signature

Reply via email to