Skip Menu |

This queue is for tickets about the DBIx-Simple CPAN distribution.

Report information
The Basics
Id: 51563
Status: rejected
Priority: 0/
Queue: DBIx-Simple

People
Owner: Nobody in particular
Requestors: nayuta [...] gmail.com
Cc:
AdminCc:

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



Subject: Cannot set lc_columns at initilize.
Date: Mon, 16 Nov 2009 15:08:55 +0900
To: bug-DBIx-Simple [...] rt.cpan.org
From: Nayuta Ishii <nayuta [...] gmail.com>
Hi, There is a small bug at an initializing connection. I cannot set "lc_columns" at initializing time (describe below...). $c = DBIx::Simple->connect("dbi:mysql:Example", "example", "example", {lc_columns => 0}); $c->{lc_columns} = 0; print Dumper($c->select("example")->hashes); $VAR1 = bless( { 'lc_columns' => 0, 'st' => bless( { 'sth' => bless( {}, 'DBI::st' ), 'db' => 'DBIx::Simple=HASH(0x82ff5f8)', 'query' => 'SELECT * FROM Member' }, 'DBIx::Simple::Statement' ) }, 'DBIx::Simple::Result' ); Thank you.
On Mon Nov 16 01:09:16 2009, nayuta wrote: Show quoted text
> I cannot set "lc_columns" at initializing time (describe below...). > $c = DBIx::Simple->connect("dbi:mysql:Example", "example", "example", > {lc_columns => 0}); > $c->{lc_columns} = 0;
I think you should read the documentation. The correct syntax is $c->lc_columns = 0; -- Juerd