Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: DBI Inserting undef as literal string 'null'

by hossman (Prior)
on Feb 24, 2010 at 06:21 UTC ( #825001=note: print w/replies, xml ) Need Help??

in reply to DBI Inserting undef as literal string 'null'

Here's three questions for you to consider...

  1. what does using whatever tool you are using to inspect your database return when you execute "select NULL"? (ie: is your tool giving you missleading info)
  2. what exactly does your table definition look like? ... do any of the columns have default values declared (ie: did someone declare the fields to have default values of the string "null" when they ment null)
  3. what do you get when you bind undef to an insert into a numeric column? (ie: if you still find that you have a string value of "null" in a numeric column, something is seriously screwed up in your database or your driver)
  • Comment on Re: DBI Inserting undef as literal string 'null'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://825001]
[Corion]: marto: A rough week comes to an end?
Corion has to finish off some test tickets and hopefully close them. Also I have to prepare some information for the tax people on the weekend :-/
[marto]: it feels like 2 weeks :)
[Discipulus]: sane dots for your weekend marto!
[choroba]: My week was hectic as well, and so will be the next several ones...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-01-20 10:09 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.