[aida] ODBC incompatibility?
janko.mivsek at eranova.si
Fri Oct 17 11:11:26 CEST 2008
This is really funny. Swazoo strictly uses Sport's SpTimestamp and not
any of Squeak versions of Timestamp, so I can't see how ODBC code can
override something by accident.
Have someone a bit time to reproduce and investigate this case?
Bèrto ëd Sèra wrote:
> I observed something funny. To use ODBC for squeak I first need to file
> in the FFI package (otherwise I miss the ExternalEntity class). But this
> seems to break swazoo, which becomes irresponsive. On restarting the
> image it says that Timestamp does not understand a number of methods. I
> can't seem to find the point in FFI and/or ODBC that redefine anything
> in Timestamp, though. I surely find a new:
> Magnitude subclass: #TimeStamp
> instanceVariableNames: 'date time'
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Kernel-Magnitudes'
> The broken method on SPTimestamp is
> asRFC1123StringOn: targetStream
> Code taken from Swazoo Timestamp extenton with the following
> comment: FIXME: Assumes
> server's clock is GMT. Should convert server's clock to GMT if it is
> not. Besides that,
> this whole method is really ugly."
> targetStream nextPutAll: (self underlyingTimestamp asDate weekday
> copyFrom: 1 to: 3);
> nextPutAll: ', '.
> self underlyingTimestamp *day* < 10 ifTrue: [targetStream nextPut: $0].
> self underlyingTimestamp asDate printOn: targetStream format: #(1 2
> 3 $ 2 1).
> targetStream space.
> self underlyingTimestamp *printHMSOn:* targetStream.
> targetStream nextPutAll: ' GMT'
> Now, how can this happen? The two classes have different names, don't
> they? In my visualworks days I cannot remember any such incident. Can
> anyone give me a hint?
> To repeat the bug:
> 1) Get a fresh once-click image
> 2) install FFI
> 3) install ODBC for Squeak
> Aida mailing list
> Aida na aidaweb.si
Smalltalk Web Application Server
More information about the Aida