From: Milan Babuskov <milanb@pa...> - 2006-06-25 22:36:13
I implemented the "Copy records as UPDATE" action for data grid. It
currently only supports tables that have primary key defined.
Anyway, here's the issue: In order to get the WHERE clause, I needed the
primary key info for the table, but it wasn't easy to get it.
I did it by going to parent ExecuteSqlFrame, and then using its
databaseM to search for table by its name. However, this meant including:
into DataGrid.cpp. Any ideas for some elegant solution?
We need to either have the underlying Table* or the Database*. I think
the Database is a better choice esp. for some future needs.