[OFBiz] Dev - table resize

Adrian Crum adrianc at hlmksw.com
Fri Apr 8 13:48:00 EDT 2005


That would be helpful.

bjfree at free-man.net wrote:

> don't think it would be correct to change the size.
> so the error would be the only thing.
> since you say the driver will return the error, just need to embellish it so
> the log will reflect what to change in the entity.
> 
> -----Original Message-----
> From: Adrian Crum [mailto:adrianc at hlmksw.com]
> Sent: Friday, April 08, 2005 5:05 PM
> To: OFBiz Project Development Discussion
> Subject: Re: [OFBiz] Dev - table resize
> 
> 
> What would be the result if the validation routine discovers incorrect 
> parameters? Does it change the parameters to guarantee success, or does 
> it generate an error? If it generates an error, then nothing is 
> accomplished - because without the validation routine the JDBC driver 
> will throw an exception that describes the error.
> 
> bjfree at free-man.net wrote:
> 
> 
>>The Current routine does not testing of the column to be changed
>>1) will this exceed the DB table size
>>2) is the data in the column larger than the size proposed, for reducing
>>size.
>>3) will this exceed the max column size of the DB.
>>
>>#1,3 do not add much time to process
>>#2, could cause a large delay, if the table has many rows.
>>
>>would having a switch for these test be appropriate.
>>
>>
>> 
>>_______________________________________________
>>Dev mailing list
>>Dev at lists.ofbiz.org
>>http://lists.ofbiz.org/mailman/listinfo/dev
>>
> 
>  
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev
>  
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev
> 


More information about the Dev mailing list