Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Returning columns with SQL::Statement error

by poj (Abbot)
on Jan 19, 2018 at 16:40 UTC ( [id://1207542]=note: print w/replies, xml ) Need Help??


in reply to Returning columns with SQL::Statement error

I see your bug report has been answered but a work around in this case would be

printf "Columns %s\n",join ',', map { $_->{'value'} } @{$s +tmt->column_defs()};
poj

Replies are listed 'Best First'.
Re^2: Returning columns with SQL::Statement error
by LalakisOeisagwmenos (Novice) on Jan 22, 2018 at 11:17 UTC
    YES! You are totaly correct. Thank you. I didn't thought I had to expand the return of $stmt->column_defs() to an array reference (a hash slice surrounding it with @{}) even though dumper was returning an array reference. What a stupid I was. And yes it is 'value' hash value.
    THANK YOU!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found