Data Grid Checking Nullable Columns

glynch_234 <[email protected]>
Newsgroups gmane.comp.db.oracle.toad.free
Message-ID <18196768.703191330099059937.JavaMail.SYSTEM@alvqcfw02>
 Message from: glynch_234 

 I &quot;think&quot; this just started in V11 of TOAD...

When you are in the Data Grid, and you create a new record, when entering data for that record, it is checking the &quot;nullable&quot; property of the column definition and requiring data in those columns.

While that seems perfectly acceptable, we have columns that are required, but that are populated by the trigger (like audit columns, date_entered, entered_by...)...&nbsp; So, since TOAD is saying the value is required, you have to put a value, but since it is an audit column, we reject the insert since you are providing data in a non-insertable column(perhaps a trigger that is too restrictive (we could just overwrite the value instead of rejecting the insert; I think we erred on the side of forcing the front-end to do it correctly instead of just fixing it), but that is the way it has always been&nbsp;and we have hundreds of triggers that are written the same way).

I am looking for a way to turn off the TOAD nullable check in the data grid, but cannot find it.&nbsp; In past versions, you could leave the values empty and once the insert occurred, the trigger would populate those values and everything would be fine...&nbsp; 

I know I could fix this by changing our trigger, but I was hoping there would be a TOAD option to stop checking...&nbsp;  

_______________________________________

Historical Messages 


Author: glynch_234
Date: Fri Feb 24 07:57:09 PST 2012
 I &quot;think&quot; this just started in V11 of TOAD...

When you are in the Data Grid, and you create a new record, when entering data for that record, it is checking the &quot;nullable&quot; property of the column definition and requiring data in those columns.

While that seems perfectly acceptable, we have columns that are required, but that are populated by the trigger (like audit columns, date_entered, entered_by...)...&nbsp; So, since TOAD is saying the value is required, you have to put a value, but since it is an audit column, we reject the insert since you are providing data in a non-insertable column(perhaps a trigger that is too restrictive (we could just overwrite the value instead of rejecting the insert; I think we erred on the side of forcing the front-end to do it correctly instead of just fixing it), but that is the way it has always been&nbsp;and we have hundreds of triggers that are written the same way).

I am looking for a way to turn off the TOAD nullable check in the data grid, but cannot find it.&nbsp; In past versions, you could leave the values empty and once the insert occurred, the trigger would populate those values and everything would be fine...&nbsp; 

I know I could fix this by changing our trigger, but I was hoping there would be a TOAD option to stop checking...&nbsp; 
__
_______________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.