db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <thm...@web.de>
Subject Re: OJBRuntimeException issue
Date Fri, 04 Apr 2003 18:16:08 GMT
checked into CVS

Per-Olof Norén wrote:
> Thomas, comitters,
> 
> Mahler Thomas wrote:
> 
>> Hi Per-Olof,
>>
>> As you will have noticed I'm very lazy wrt. Scarab. But if you post a 
>> patch
>> against the latest CVS head I'll promise to apply it in a reasonable
>> timeframe!
>>
>> cheers,
>> Thomas
>>
> Given the "lazyness" I didn´t put the patch in scarab, I´m attaching it  
> :-)
> What this patch does is to allow for java.sql.STRUCT in FieldDescriptor 
> and SQLHelper.
> Iif there are any issues, just let me now...
> 
> Regards,
> Per-Olof
> 
> 
> ------------------------------------------------------------------------
> 
> Index: SqlHelper.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-ojb/src/java/org/apache/ojb/broker/util/SqlHelper.java,v
> retrieving revision 1.6
> diff -r1.6 SqlHelper.java
> 284a285,290
> 
>>            case Types.STRUCT:
>>                {
>>                    java.sql.Struct aStruct = (java.sql.Struct) rs.getObject(columnId);
>>                    result = ( rs.wasNull() ? null : aStruct );
>>                    break;
>>                }
> 
> 426a433,438
> 
>>            case Types.STRUCT:
>>                {
>>                    java.sql.Struct aStruct = (java.sql.Struct) rs.getObject(columnId);
>>                    result = ( rs.wasNull() ? null : aStruct );
>>                    break;
>>                }
> 
> 555a568,571
> 
>>        else if (value instanceof java.sql.Struct)
>>        {
>>            return Types.STRUCT;
>>        }
> 
> 651a668,671
> 
>>                }
>>            case Types.STRUCT :
>>                {
>>                    return "Types.STRUCT";
> 
> 
> 
> 
> 
> Index: FieldDescriptor.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/FieldDescriptor.java,v
> retrieving revision 1.19
> diff -r1.19 FieldDescriptor.java
> 262a263,264
> 
>>        else if (type.equals("struct"))
>>            result = Types.STRUCT;
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message