in reply to OT: Oracle SQL issues
hmm, all columns are accounted for, so it's not like you're letting oracle implicitly fill in default nulls for some columns excluded from your insert. what else could it be...ID = 1 Date_Created = SYSDATE Date_Modified = SYSDATE Title = 'test promotion' Promotion_Phrase = 'phrase here' Date_Start = NULL Date_End = NULL Status = 0 Trigger_Type = 0 Trigger_Value = '' Trigger_Quantity = '' Reward_Type = 0 Reward_Value = '' Reward_Quantity = '' Uses_PerCustomer = 1 Uses_Maximum = 0
...and undef's for the two null values I do want
dbd::oracle is going to treat NULL's as undef coming OUT of queries, but not inversely. in other words, you need to pass the string 'NULL' in your bind params or execute instead of passing perl's undef.
hth; cheers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OT: Oracle SQL issues
by runrig (Abbot) on Sep 13, 2001 at 19:52 UTC | |
by seesik (Initiate) on Sep 13, 2001 at 20:14 UTC | |
|
Re: Re: OT: Oracle SQL issues
by AidanLee (Chaplain) on Sep 13, 2001 at 18:10 UTC | |
by seesik (Initiate) on Sep 13, 2001 at 18:19 UTC | |
by AidanLee (Chaplain) on Sep 13, 2001 at 18:51 UTC | |
by seesik (Initiate) on Sep 13, 2001 at 20:11 UTC | |
by AidanLee (Chaplain) on Sep 13, 2001 at 21:06 UTC | |
by AidanLee (Chaplain) on Sep 13, 2001 at 18:31 UTC |