brianadkins
Založený: 30.09.2005
Príspevky: 3
Zaslal: 2005-09-30 23:34
Návrat hore
Odpovedať s citátom
|
I'm using phpmyedit to edit a table that as several fields that are 'NULL' by default. However, when I edit a row in the table, all NULL fields are turned into non-NULL blank values. This happens even if I'm not touching those specific fields with my edit.
Is there any way to get phpmyedit to leave a NULL value alone without turning it into a non-null blank?
thanks,
-Brian
|
ajh
Založený: 17.12.2003
Príspevky: 236
Zaslal: 2005-10-01 09:46
Návrat hore
Odpovedať s citátom
|
I think that the best way of doing this is to use 'sqlw' to explicitly write NULL back into the column.
|
brianadkins
Založený: 30.09.2005
Príspevky: 3
Zaslal: 2005-10-01 14:22
Návrat hore
Odpovedať s citátom
|
'sqlw' => 'IF($val_qas = "", NULL, $val_qas)'
that did it... in fact this ability is specifically documented in the online help.... just wasn't looking hard enough I guess...
thanks,
-Brian
|
pgowling
Založený: 20.02.2004
Príspevky: 6
Zaslal: 2008-03-10 08:52
Návrat hore
Odpovedať s citátom
|
This works perfect! Many thanks :-)
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|