Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: EZDBI is an easier interface to SQL databases

by mikeB (Friar)
on Oct 10, 2001 at 22:30 UTC ( #118080=note: print w/replies, xml ) Need Help??

in reply to Re: EZDBI is an easier interface to SQL databases
in thread EZDBI is an easier interface to SQL databases

I always returned an array of hashrefs, figuring if that wasn't enough I'd be using the standard interface :)

It's been a while but I think the problem was that I was using Win32:ODBC, before I discovered DBI, so was trying to put the values directly in the SQL string rather than using placeholders. To get the data correctly escaped required finding the type of each field. IIRC, my approach was a little different in that I passed the hashref from the select back to the update.

Of course, there's also the issue of how to handle updates to complex queries.

When it got to the point where it seemed I was essentially recreating M$ ADO, with all it's problems, I decided it wasn't worth it to me. With DBI's RaiseError and fetchall_arrayref now available, I don't bother to use my old query module anymore even for simple selects.

With DBI and placeholders, you can probably handle simple updates without much problem.

I don't mean to sound discouraging. I'm rather hoping you find a way :)

  • Comment on Re: Re: EZDBI is an easier interface to SQL databases

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-01-28 13:11 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (73 votes). Check out past polls.