Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: DBI bind output vars by column name

by Hercynium (Hermit)
on Jul 14, 2007 at 00:07 UTC ( #626557=note: print w/replies, xml ) Need Help??

in reply to Re: DBI bind output vars by column name
in thread DBI bind output vars by column name

Thanks for the tip. Since posting that snippet and poking around gmax's stuff I've learned a few things that I know I could have used in the past (and probably will in the future)

However, the code I wrote was to solve a different sort of problem. Because of the mapping, I can pass $bound_fields directly to the node_create() method of an object to create a fully-populated object without calling a whole bunch of setters.

Also, since the script this code is in is used on several systems, querying several databases, the $RESULT_MAP is actually built from a config file to accommodate creating the same type of objects from tables with several different schemas.
  • Comment on Re^2: DBI bind output vars by column name

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://626557]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-04-23 02:18 GMT
Find Nodes?
    Voting Booth?