Subject | Re: [firebird-support] What programming languages and toolkits do you use to access Firebird? |
---|---|
Author | Fulvio Senore |
Post date | 2008-10-01T19:51:03Z |
Daniel Albuschat ha scritto:
difficult task.
If your rows come from a join a single primary key is not enough: to
identify a row you need the primary key of all the table used in the join.
So it looks like your software needs to parse the SQL statement and to
automatically identify all the needed primary keys. At a second time,
when you need to retrieve the full row, you need to recreate if from the
primary keys.
I am not a Firebird expert, and I have written my own data access layer
on top of IBPP to satisfy my needs. It works well enough, but when I
create an editable rowset from a single table I pass the name of the
primary key as a parameter because I had no idea of hot to determine it
automatically.
It is not a big problem, but it would be nice to have the software
determine the primary key. Do know hot it can be done?
Thank you.
Fulvio Senore
> There's an important thing to knowThis is very interesting, since I thought that it would have been a
> here: I'm fetching
> only the primary keys from a result set to know how many rows there
> are and which
> primary key the row at the temporary "index" in my table has.
difficult task.
If your rows come from a join a single primary key is not enough: to
identify a row you need the primary key of all the table used in the join.
So it looks like your software needs to parse the SQL statement and to
automatically identify all the needed primary keys. At a second time,
when you need to retrieve the full row, you need to recreate if from the
primary keys.
I am not a Firebird expert, and I have written my own data access layer
on top of IBPP to satisfy my needs. It works well enough, but when I
create an editable rowset from a single table I pass the name of the
primary key as a parameter because I had no idea of hot to determine it
automatically.
It is not a big problem, but it would be nice to have the software
determine the primary key. Do know hot it can be done?
Thank you.
Fulvio Senore