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: Matt Rice
Subject: Re: [bug #25462] Issues building GDL2 on Windows
Date: Mon, 2 Feb 2009 05:20:44 -0800

On Mon, Feb 2, 2009 at 4:10 AM, Giuseppe Luigi Punzi
<glpunzi@lordzealon.com> wrote:
> I can't believe it. I builded GDL2 on windows after 2 weeks :D
>
> Thanks a lot for the effort.
>
> Now, If I go to New from Database, and select SQLite, DBModeller crash at
> Ok. If I press on New model, and then, add an entity and an atribute (withou
> parameters, nothing), and generate SQL, when I press on SQLAdaptor, crash
> too at Ok. This is normal because the model is "empty"?

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]