[vwnc] [BUG][FIX] Oracle EXDI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] [BUG][FIX] Oracle EXDI

Reinout Heeck-2
Hi,

OracleSession>>valueIsTimestamp first test on oracleConversion and later
on class name. This is in vw7.6 as in 7.7 (aug08.1). Since we are using
our own specialized timestamps the test won't do (we need to use the
OracleTimestampBuffer)

Regards,

Cham

PS also posted on VWdev

===== Original ====
valueIsTimestamp: aValue
    "Answer true if the value is a Timestamp or an Array of Timestamp. "
    | convSymbol |
    convSymbol := aValue oracleConversion.
    ((convSymbol == #Timestamp) and: [ aValue year ~~ 0 ]) ifTrue: [
^true ].
    (convSymbol == #Array) ifTrue: [ | representativeElement |
        representativeElement := aValue detect: [:each | each notNil]
ifNone: [nil].
        ((representativeElement class name == #Timestamp) and: [
representativeElement year ~~ 0 ]) ifTrue: [ ^true ]
    ].
    ^false

==== FIX ====
valueIsTimestamp: aValue
    "Answer true if the value is a Timestamp or an Array of Timestamp. "
    | convSymbol |
    convSymbol := aValue oracleConversion.
    ((convSymbol == #Timestamp) and: [ aValue year ~~ 0 ]) ifTrue: [
^true ].
    (convSymbol == #Array) ifTrue: [ | representativeElement |
        representativeElement := aValue detect: [:each | each notNil]
ifNone: [nil].
        ((representativeElement oracleConversion == #Timestamp) and: [
representativeElement year ~~ 0 ]) ifTrue: [ ^true ]
    ].
    ^false
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc