159 Commits

Author SHA1 Message Date
4cd1448382 Remove accidently left debug line from previous commit 2009-01-28 20:57:57 +00:00
c7a394748c Fix part of registry key RecentFilters showing up in perspectives menu. 2009-01-28 19:57:19 +00:00
7787a70231 Save a detour using procedure a calling procedure b and nothing more. 2009-01-28 19:39:22 +00:00
e791339e86 Try a pragmatic workaround for bug #761 (Large tables crash TVirtualTree) and bug #950 (Decrease memory usage for grid results). Makes the data grid hard limited to a maximum of 100,000 rows/nodes (means ~6M memory consumption just for the tree nodes). It seems reasonable to do this as on large tables you normally create a filter to find specific rows rather than scrolling and looking the rows up by hand. The grid is now able again to display superlarge tables without losing too much memory for data of few interest. However, I hope there's no complaint the other way around for why we don't display all rows instead. 2009-01-27 19:32:20 +00:00
24b1ca16a9 Avoid one of the SELECT COUNT(*) on selected table just for statistics purposes. Use the SHOW TABLE STATUS result instead - and tell the user that this is not an exact value for InnodDB tables. Especially useful for large and "slow" InnoDB tables, see issue #940. 2009-01-25 23:13:04 +00:00
f149540906 Add combobox containing recent filters to above filter memo. rfe #637: Reintroduce filter history drop down. 2009-01-25 14:21:54 +00:00
d4368bc33b Fulfill rfe #637: Reintroduce filter history drop down. Integrated as submenu of the existing context menu in filter memo. 2009-01-25 10:35:51 +00:00
23e2741e4a Fix bug #959: Insert Date/Time and access violation. Also enable date/time menuitems for non date fields. Don't see a reason why date pasting should not be valid for text columns. 2009-01-22 20:03:47 +00:00
a795e31a4b Use helper function where applicable 2009-01-20 19:39:52 +00:00
239ab468e5 Use the new progress bar in the very bottom status bar as a replacement for the SQL execution progress bar. Looks nicer, more compact and avoids moving the querygrid down at runtime. 2009-01-20 19:26:11 +00:00
3a52febc38 Fix the part of bug #938 which causes an empty WHERE clause. If CheckUniqueKeyClause returns false, EnsureFullWidth can never succeed. This fix only makes sure that the user gets an informative error popup instead of the above mentioned SQL error. 2009-01-20 19:14:28 +00:00
327450e9fd Simplify code and remove remaining debug output 2009-01-19 23:53:07 +00:00
1fae914af7 Fix bug #939: rename columnname after sorting on that column > freese the program 2009-01-19 23:19:01 +00:00
7946e8fce9 Display progress in GridToXYZ by putting a progessbar in a new panel of the status bar. Should be used for other time consuming loops as well. Related to bug #793: app freezes when 'copy as csv/xml/html' is selected 2009-01-18 23:07:46 +00:00
a1f5bd2940 Fix bug #931: Access violation when deleting many or all rows in datagrid 2009-01-18 18:43:10 +00:00
4a03be7178 Implement copy, cut, paste and select all actions by hand instead of using standard TActions which are not compatible to VirtualTree, SynEdit. All actions are always enabled now. If they fail to do what the user might expect it spits out an error sound. Probably ValidateControls() is a good place to enable/disable these actions. Fixes bug #867: Copy menu item disabled in grid popupmenu. 2009-01-18 15:46:33 +00:00
a519afb36c Fix bug #945: HTML view and Access violation 2009-01-18 09:19:58 +00:00
a5cf99deb1 Fix bug #944: List index out of bounds in query helpers 2009-01-16 23:35:44 +00:00
34c0cf73f8 Keep selection in host subtabs on refresh 2009-01-16 00:18:23 +00:00
100909bdcf Remove useless feature "Edit selection" in SQL log 2009-01-15 23:51:58 +00:00
4549725e99 Move filter box in host subtabs to bottom. Use a single one instead of one per tab. Display search results in a label right besides. Enables this filter feature for the command stats tab, where it was not available previously. 2009-01-15 23:46:58 +00:00
983fda3687 Invalidate list contents on disconnect so they get refreshed the next time they are activated and painted. 2009-01-15 23:08:34 +00:00
d150d7096d Make sub tabs Status, Processlist and Command-Stats refresh themself on demand, like in r2213. Removes SHOW STATUS from startup actions. Also release interlocked routines and shared data between these 3 tabs. 2009-01-15 22:58:00 +00:00
d905f69e10 * Fix the various refresh menu items to use the one and only refresh TAction.
* Move the auto refresh items to main menu (Tools) so it is usable in all places now, including the Data tab (which makes it working similar to tail -f).
2009-01-14 21:30:06 +00:00
6998a88ac8 Change ListVariables to be updated on demand, when it gets painted or refreshed. Removes SHOW VARIABLES from startup queries. 2009-01-14 20:38:10 +00:00
150c7ba1b2 Fix bug #941: Runtime error on "Replace" 2009-01-14 18:19:52 +00:00
18a4f9b70b Suppress automatic connection dialog and close main form if update is in progress. 2009-01-13 19:28:39 +00:00
c57a3a8900 Remove legacy, unused TTimer component 2009-01-13 18:17:40 +00:00
cd9dc5cd48 Fix reconnection logic: restore active database, connected timer and server uptime in statusbar 2009-01-05 20:52:59 +00:00
a3902ce6ba Repeat what I tried in r2184: Squeeze statusbar to the very bottom. 2009-01-05 19:48:05 +00:00
af7e11e9e5 Fix comment 2009-01-05 18:35:25 +00:00
98bb9c07f4 More compact and informative connect / disconnect messages in log 2009-01-05 18:28:28 +00:00
925f42ffc7 Fix old query result from disconnected session being displayed as Node|Node|... 2009-01-05 18:09:49 +00:00
e8ee48635e Do file logging to correct filename after connecting a different server. 2009-01-04 22:10:49 +00:00
e6cb169193 Avoid unusable main form after failed session connect. Keep the old connection alive until it is verified that the new one is available. Moves code out of PerformConnect to DoAfterConnect.
Todo: Fix reconnection logic, see bug #858
2009-01-04 21:59:36 +00:00
58c034ded8 Add session menu items to main menu, submenu of "File" : "Connect to" 2009-01-04 15:54:07 +00:00
7ce39e4e58 Disable Zeos' disconnect message and create a nicer one in main.pas 2009-01-04 14:49:55 +00:00
bd797adebf Fulfill rfe #524: Ctrl+tab navigation 2009-01-04 14:34:57 +00:00
57efab6097 Implement connecting to a different session per connections pulldown menu. 2009-01-04 12:18:16 +00:00
4f74105032 Fix visible but unwanted tabs when lastUsedDB is empty 2009-01-03 21:19:18 +00:00
97879fa5a3 Fix handling of SessionName in command line mode 2009-01-03 21:08:18 +00:00
d6e40bef96 Use Main.SessionName as a replacement for FConn.Description. 2009-01-03 19:22:22 +00:00
d8246b485f Clean up start up routines:
* Merge code from ReadWindowOptions() into FormCreate()
* Move session unrelated stuff from InitConnection() to FormCreate() or - where necessairy - to FormShow()
2009-01-03 18:06:17 +00:00
909d31fd64 Simplify writing settings to registry:
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
9bd350cf58 Fix bug #934 2009-01-03 16:03:04 +00:00
9074d5b7ca Fix AV after cancelling connection dialog 2009-01-01 23:34:00 +00:00
f1b3f5501f Remove last traces of MDI (issue #513). Merges code, controls and events from childwin into main. 2009-01-01 23:24:36 +00:00
bc58797405 Implement per session background color selection for database tree. rfe #896. 2008-12-28 10:56:47 +00:00
d408dd3ba3 Code cosmetic: Printing list or grids doesn't make any difference now. 2008-12-27 19:47:30 +00:00
32c7c9e906 Add menu item "Copy grid data as SQL" to main menu. 2008-12-26 19:26:45 +00:00