bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #25462] Issues building GDL2 on Windows


From: Giuseppe Luigi Punzi
Subject: Re: [bug #25462] Issues building GDL2 on Windows
Date: Mon, 02 Feb 2009 15:06:32 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Hi again,

I think 2 videos instead 2 words is better :)

Trying to "talk" with sqlite:
http://www.lordzealon.com/gnustep/problems/testingdbmodeller2.htm

Trying to debug: (controlador no vĂ¡lido means, invalid controller)
http://www.lordzealon.com/gnustep/problems/debugdbmodeller.htm

I will try to build postgres to see if I have the same behaviour.

Cheers.

the SQLite adaptor doesn't have a way to create a model from an
existing database, so it just returns a nil model,
which fails somewhere down the line with an exception,
NSInvalidArgumentException: The model name is emtpy
i'll look into this...

the Postgres adaptor does, but you have to be careful when using it,
about the primary key sequences and stuff I suppose.

creating a new model, and adding an entity and an attribute, then
generating sql works ok here,

the SQL generated is not valid, because of the parenthesis
CREATE TABLE (nil) ((nil) (nil) NOT NULL);
CREATE TABLE IF NOT EXISTS 'SQLiteEOAdaptorKeySequences' (seq_key
INTEGER PRIMARY KEY AUTOINCREMENT, tableName TEXT, attributeName TEXT,
key INTEGER);

I assume that you aren't seeing that exception though, and that
something is failing possibly in the SQLiteAdaptor login panel, a text
box with a browse/ok/cancel buttons, which pops up after the select
adaptor window do you see this window?

anyhow posting a backtrace produced with the following, would be helpful,

debugapp DBModeler.app

then at the (gdb) prompt...

set breakpoint pending on
break -[NSException raise]
command
bt
cont
end
r
bt
quit

should cover it i think.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]