[SqueakDBX] Character encoding and pooling in SqueakDBX and Glorp
Mariano Martinez Peck
marianopeck at gmail.com
Sat Sep 11 15:49:56 UTC 2010
Thanks Panu. I am looking at the code right now. I will give you my
feedback. Thanks a lot :)
Two little questions...
1) If I DON'T want encoding, it says I don't need to do anything. It just
doesn't encode because of the
^ encoder isNil ifTrue:[aString] ifFalse:[ encoder
^ encoder isNil ifTrue:[aByteArray ] ifFalse: [encoder
I am right ? then....if we do that check with the nil...I don't need to
set the Null encoder, isn't it ?
2) To set a particular encoding for SqueakDBX the way to do this is
something like this:
connectionSettings := DBXConnectionSettings
encodingStrategy: PSAutomaticEncoding new. "or any other
conn := DBXConnection platform: DBXPostgresPlatform new settings:
is this correct?
And for Glorp it is something like:
login := Login new
database: PostgreSQLPlatform new;
encodingStrategy: PSAutomaticEncoding new.
is this correct ?
3) How did you run both, SqueakDBX and GlorpDBX tests?
To squeakDBX did you modify DBXPostgreFacility >> createConnection and
set there the encoder?
And for Glorp you changed DBXGlorpMainBackendTestPostgresql >>
BTW....I will be en ESUG next week....will you be there?
On Fri, Sep 10, 2010 at 11:17 AM, Panu Suominen <panu.j.m.suominen at gmail.com
> 2010/9/7 Panu Suominen <panu.j.m.suominen at gmail.com>:
> > 2010/9/6 Mariano Martinez Peck <marianopeck at gmail.com>:
> >> Hi Panu. This is really cool. I have did a quick view and seems pretty
> >> I couldn't test it yet but I will do it and let you know. If everything
> >> fine, I will commit it.
> > The package naming is not very good. And at least psencoding package
> > does not depend on the packages it should.
> Ok. I think I got it right this time. encoding-changes.1.cs contains
> changes that were required to Glorp, SqueakDBX and such. They are done
> on the version 1.2 of GlorpDBX.
> EncodingStrategy change set contains couple of classes that can be
> used to set how encoding should be determined. This change set is not
> required to make the
> GlorpDBX and friend work. It is only needed if one wants to control
> what encoding should be used.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SqueakDBX