[SqueakDBX] auto increment on Squeak/Pharo - Glorp - Postgres

Yanni Chiu yanni at rogers.com
Fri Feb 26 06:02:02 UTC 2010


Yanni Chiu wrote:
> I've not fixed the problem yet, but I have found dynamic descriptors is 
> the root of the problem. Somewhere along the way, #tableNamed:ifNone: is 
> called to create a DatabaseTable instance. It is supposed to have a 
> GlorpSerialType instance that holds a PGSequence. This is done in 
> DatabaseField>>postInitialize, but does not happen in my case. An 
> exception gets thrown because no table initializer method is found 
> (which should be the case, since I create the table dynamically). But 
> this exception was being swallowed - don't know where yet.

To wrap this up, Glorp works fine. I wrote my own DescriptorSystem 
subclass, because the DynamicDescriptorSystem that I thought was the 
right thing to use, turned out to be tangled up with the test cases. Or 
maybe I just didn't figure out how to properly use it.

-- 
Yanni


More information about the SqueakDBX mailing list