Commit Graph

5018 Commits

Author SHA1 Message Date
Ansgar Becker
cfe95db339 Handle mouse wheel scrolling in any VirtualTree under mouse, without having focus. Fixes issue #447. 2009-12-27 07:06:29 +00:00
Ansgar Becker
02c7c26b9c Keep track of deleted and inserted row numbers in selected table. Fixes issue #1099. 2009-12-25 13:42:30 +00:00
Ansgar Becker
401a9ec4e2 Code cosmetic in SelectDBObject(). 2009-12-25 13:11:56 +00:00
Ansgar Becker
a08eaa1ee2 Fix AVs and automatic focus switching effects in dbtree, introduced in previous commit. 2009-12-25 13:10:52 +00:00
Ansgar Becker
eff81d8e35 Code cosmetic: Let GetSelectedTable return a TDBObject which has the same properties as TListNode but even more. 2009-12-25 11:26:05 +00:00
Ansgar Becker
3a7f67ad51 Add menu item "Invert selection", usable in grids and listboxes. Fixes issue #451. 2009-12-25 07:59:30 +00:00
Ansgar Becker
527cbdf423 Mask date portion in front of single queries in log file so the query is valid SQL. Fixes issue #1072. 2009-12-25 07:05:51 +00:00
Ansgar Becker
c181ffe902 Consistently disable menu items for creating a trigger when the upper host node is focused. 2009-12-25 06:53:26 +00:00
Ansgar Becker
a265c45ba0 Add missing menu item reference from last commit. 2009-12-25 06:52:08 +00:00
Ansgar Becker
a1325ea8e2 Add menu item "Bulk table editor" to main menu "Tools". 2009-12-25 06:49:31 +00:00
Ansgar Becker
cdc5b1a78a Always strip and hide server-side appendage "InnoDB free: xyz KB" from table comment, fetched by SHOW TABLE STATUS. If that detail is of any interest, we should display it in a separate column of ListTables, rather than leaving it in the user-editable comment field. Fixes issue #1561. 2009-12-25 06:43:31 +00:00
Ansgar Becker
684983b57b Remove "perspectives" feature, to make data browsing less annoying. Restore old behavior where just the last set filter/columns/sorting was remembered. Fixes issue #822. 2009-12-24 11:39:20 +00:00
Ansgar Becker
42f14ae9fc Exit grid loading earlier if no table or database was selected, to have less code indentation. 2009-12-24 07:03:50 +00:00
Ansgar Becker
92eeced113 Don't raise exception when user enters an invalid filter, rather do that with a normal error dialog. Fixes issue #1559. 2009-12-23 17:51:57 +00:00
Ansgar Becker
6a1df0b488 Rename "table wide filter" into "multi column filter", so it says more what it is, making it clearer that this can result in a long running query. Fixes issue #638 in the way I interpret it. 2009-12-23 15:38:48 +00:00
Ansgar Becker
b8abe2cc21 On a blank server with 0 databases, the dbtree stayed empty after creating a database. DBtree.ResetNode seems to solve this, better as DBtree.ReInitChildren. Unfortunately that also collapses expanded nodes. 2009-12-23 15:15:24 +00:00
Ansgar Becker
b48ef9406d Gracefully ignore it when a trigger does not exist in editing mode. Important for cases in which the user has SQL errors in his trigger body. Fixes issue #1558. 2009-12-23 14:27:01 +00:00
Ansgar Becker
c3d771eb5e Add object names of selected database to SynMemo highlighter. Broken in r2879. Fixes issue #1557 2009-12-23 13:42:46 +00:00
Ansgar Becker
09c76314c6 Do not try to apply table specific characteristics like charset or engine to a view. 2009-12-23 08:32:01 +00:00
Ansgar Becker
67352c624b Recreate instead of renaming a view when "Move to database" was selected. Fixes issue #1457. 2009-12-23 08:24:55 +00:00
Ansgar Becker
4e14b1a5ec Fix detection of views with invalid referenced tables, which have a different comment than "VIEW". 2009-12-23 00:21:41 +00:00
Ansgar Becker
029ac13101 Fix wrong node reference 2009-12-23 00:16:49 +00:00
Ansgar Becker
54b6f31fa9 Safety check to avoid AVs in special cases. 2009-12-23 00:11:49 +00:00
Ansgar Becker
5152b38937 Implement a "Duplicate row" action for quicker grid editing. Fixes issue #533. 2009-12-23 00:03:48 +00:00
Ansgar Becker
eb9915d5be Invalidate columns and keys of an edited table when pressing the "Save" button, to avoid SQL errors when switching to "Data" tab. Fixes issue #1556 2009-12-22 23:38:38 +00:00
Ansgar Becker
c46a87338b Remove unused debug variable 2009-12-22 23:21:03 +00:00
Ansgar Becker
e356cb7ed7 Sanitize all "uses" clauses from unneeded unit references. 2009-12-22 23:19:56 +00:00
Ansgar Becker
e43535ee5b Make regular expression stable against commas in data types, such as DECIMAL(10,7). Keeping compatibility to spaces in data types, like INT UNSIGNED. Fixes issue #1554. 2009-12-22 18:57:20 +00:00
Ansgar Becker
8d32a1fd0c Raise with a more detailed exception message, to debug issue #1540. 2009-12-22 14:16:54 +00:00
Ansgar Becker
9d722e2f07 Don't auto-call database editor when focusing a table in dbtree. Fixes issue #1550. 2009-12-22 14:01:02 +00:00
Ansgar Becker
1cfe855bae Fix uncheckable tree nodes when a database gets checked and tries to auto-check its children. Fixes issue #1552. 2009-12-22 13:31:50 +00:00
Ansgar Becker
6ebdea449b Browse to previous cell when pressing Shift+Tab in editing mode. No need to post messages for this logic. Fixes issue #1407. 2009-12-21 20:05:32 +00:00
Ansgar Becker
6fa9fdb397 Clear cached objects of modified databases after bulk editing, which can include a table moving. Fixes issue #1506. 2009-12-21 13:11:17 +00:00
Ansgar Becker
d92a7d4394 Indicate ON UPDATE clause in table editor's column list. Fixes issue #1545. 2009-12-21 12:42:16 +00:00
Ansgar Becker
45ea75752a Fix empty returning string, broken in r2890. Fixes issue #1549 and various other places where esc() is called. 2009-12-21 11:31:58 +00:00
Ansgar Becker
18b7b8bb82 Only copy selected rows in "Copy as ..." actions. Fixes issue #789. 2009-12-21 11:24:19 +00:00
Ansgar Becker
a9e404e181 Move string escaping methods from helpers to connection unit, replace code in TMySQLConnection.EscapeString(). So we don't use two different methods for the same task. Also, EscapeString() converted WideStrings into Strings using Utf8Encode, which was then displayed as broken text in SQL log. 2009-12-21 10:23:58 +00:00
Ansgar Becker
f1d22faa6a Gracefully ignore non existent columns on older servers. Fixes issue #1547 2009-12-21 09:13:01 +00:00
Ansgar Becker
4501f070a9 Wrap Connection.Database in try..except blocks, so they don't throw access violations when the selected db was deleted from outside. Fixes issue #1445 2009-12-21 09:07:21 +00:00
Ansgar Becker
424ff3c8ab Add missing backticks to dropped database name 2009-12-21 06:36:26 +00:00
Ansgar Becker
495ed3a689 After refreshing the tree, select the upper host node as fall back, if previously selected database was deleted from outside. Ensures there is at least one focused node and the unavailable database does not remain selected internally. 2009-12-21 06:34:18 +00:00
Ansgar Becker
d14d8e01f7 Database node was not removed after DROP DATABASE action. Fixes issue #1474. Described access violation unreproducible here any longer, probably fixed earlier. 2009-12-20 09:37:36 +00:00
Ansgar Becker
7272ba3bc3 Remove handling of crashed tables - there is no difference to normal tables in the way we handle them. 2009-12-19 21:25:59 +00:00
Ansgar Becker
62764fa5e3 Fix access violation when trying to expand a trigger or routine in order to fetch its columns. 2009-12-19 21:18:57 +00:00
Ansgar Becker
91063382b2 Use DBtree's events in a similar tree, to remove redundant code. Fixes wrong node icons for routines and triggers. 2009-12-19 21:13:56 +00:00
Ansgar Becker
1bca351dd1 Performance: When editing a trigger, fetch its attributes from a SHOW TRIGGERS command rather than by SELECTing information_schema.TRIGGERS which is slow. Related to issue #1529. 2009-12-19 19:15:20 +00:00
Ansgar Becker
6cbb6c6470 Move "Empty table(s)" items in popup menu up, it belongs to "Edit", "Drop" and "Create". 2009-12-19 19:04:18 +00:00
Ansgar Becker
35e8bbb304 Do not fetch database objects from information_schema, which has gotten extremely slow on servers with many databases and triggers, since we support triggers.
* Instead, use separate SHOW commands for tables, functions, procedures and triggers
* Catch this chance to move these methods from main unit to mysql_connection, so they're accessible in a more generic way
* Additionally, introduce new classes TDBObject and TDBObjectList which provide a more generic way than TMySQLQuery to access these database objects.
Fixes issue #1529
2009-12-19 11:40:28 +00:00
Ansgar Becker
dfa981232c Ensure to check/uncheck uninitialized nodes on check-click. Fixes issue #1542. 2009-12-17 23:59:41 +00:00
Ansgar Becker
17e6438a70 Do not auto-size columns in data grid after editing. Not sure why that was done, can be annoying when you manually sized column(s). 2009-12-16 19:54:10 +00:00