Commit Graph

6139 Commits

Author SHA1 Message Date
Ansgar Becker
72acd369e5 Fix glitch from previous commit which causes access violations in TMainForm.SynMemoQueryPaintTransient. See http://www.heidisql.com/forum.php?t=10402 2012-03-25 06:37:42 +00:00
Ansgar Becker
110e7ca2ed Update SynEdit component to latest SVN revision 76. 2012-03-24 23:04:29 +00:00
Ansgar Becker
bd8cc387ca Add context menu with copy, cut, paste and select all items to all db object editors which have a TSynMemo. Fixes issue #2765. 2012-03-24 22:20:09 +00:00
Ansgar Becker
2e6d39c401 Do not auto check all child nodes by checking parent node, when clicking "Check all tables". See http://www.heidisql.com/forum.php?t=10334 2012-03-24 22:01:27 +00:00
Ansgar Becker
500472970a User manager: Check grants *before* tree node has focus. Could be a non-flushed user, since we just SELECT them from mysql.user. Catch such "There is no such grant defined for user" errors and disable tree node in that case. See http://www.heidisql.com/forum.php?t=10364 2012-03-24 07:40:26 +00:00
Ansgar Becker
7948055261 Since r4096, TQueryHistory.ReadItem() possibly returns nil. Catch these cases in relevant loops. Fixes issue #2791. 2012-03-21 19:07:22 +00:00
Ansgar Becker
a004c015d8 Fix minor memory leak 2012-03-21 18:57:14 +00:00
Ansgar Becker
9c7f23b9b6 Add context menu item for manually clearing query history. See http://www.heidisql.com/forum.php?t=8927#p10355 2012-03-20 20:09:55 +00:00
Ansgar Becker
65222c123f Do not check expansion state of query history children unless the parent node is expanded, to avoid initializing children when not required. Accesses registry items when doing so. 2012-03-20 19:46:46 +00:00
Ansgar Becker
e9eb68b293 Add safety check for numeric history item name, so we don't run into follow up errors when there is some non-numeric history item. Fixes issue #2790. 2012-03-20 19:34:04 +00:00
Ansgar Becker
8a1fa0efc8 Forgotten file in previous commit. 2012-03-19 23:51:34 +00:00
Ansgar Becker
20ad253cca Implement query history in helpers tree. See http://www.heidisql.com/forum.php?t=8927 . 2012-03-19 23:45:09 +00:00
Ansgar Becker
0d0fad6745 SelectNode triggers a potentially set OnFocusChanged event, benefit from that logic in some places where I used to assign Focusnode := xyz. 2012-03-13 22:21:53 +00:00
Ansgar Becker
d6209f64d7 Remove unused code, function getEnumValues(). 2012-03-13 22:16:05 +00:00
Ansgar Becker
ba66b5fbf5 Remove unused variable. 2012-03-13 22:14:01 +00:00
Ansgar Becker
c0f97fd160 Documentation 2012-03-13 22:13:14 +00:00
Ansgar Becker
1a13a011c2 Reintroduce option "Remember filters" on Preferences > Data, as a replacement for the delete buttons besides the recent filters dropdown. Reverts r3463 and fixes issue #2776. 2012-03-13 22:11:11 +00:00
Ansgar Becker
c459bb0ad6 Pass application name in MS SQL connection string 2012-03-13 20:07:52 +00:00
Ansgar Becker
1c76c2ecc0 Do not pass TCP port to MS SQL if named instance in host name present. Fixes issue #2767. 2012-03-13 20:06:39 +00:00
Ansgar Becker
9b7a1a88cd Implement usage of mysql_warning_count(). Ask for running SHOW WARNINGS in a new query tab if there are more than the 5 warnings which already get displayed in the popup dialog. Fixes issue #2768. 2012-03-10 09:13:31 +00:00
Ansgar Becker
530c27d064 Synchronize logging within a query thread with the main thread, to prevent access violations in SynEdit. Remove CriticalSection approach. Fixes issue #2763. 2012-03-09 20:55:31 +00:00
Ansgar Becker
f84f6e78a3 Don't catch too many types of exceptions, only file stream related ones, in a loop with much code which was never meant to be handled by a try/except block. 2012-03-08 20:14:59 +00:00
Ansgar Becker
bc599ba495 Free sql batch object after the while loop (not within). Fixes issue #2762. 2012-03-08 20:12:36 +00:00
Ansgar Becker
f36f54b0b8 Disable editing routines if user has no privilege to select from mysql.proc or if he's not the owner of that routine. See http://www.heidisql.com/forum.php?t=10231 2012-03-07 20:57:46 +00:00
Ansgar Becker
4de1b3012d Move code from GetSQLSplitMarkers and SplitSQL into TSQLBatch class. Enables me to access details like string size of batch. Preparation for query history. 2012-03-06 21:52:57 +00:00
Ansgar Becker
ccca1bf982 Try to fix command line for Wine users by launching "$TERM -e path/to/mysql", see http://www.heidisql.com/forum.php?t=10158 2012-03-06 20:13:21 +00:00
Ansgar Becker
36d8e53333 Issue #2744: Remove PHP start and end tags for clipboard version of grid export. 2012-03-05 12:30:13 +00:00
Ansgar Becker
8f6b064c8a Do not export column names as array keys if "Column headers" is unchecked 2012-03-03 21:27:18 +00:00
Ansgar Becker
347f1ee986 Add PHP file type to save dialog 2012-03-03 21:18:58 +00:00
Ansgar Becker
f7dff6259a Implement grid export as PHP array. Fixes issue #2744. 2012-03-03 17:04:01 +00:00
Ansgar Becker
de0048d419 Issue #2728:
* Support Unix paths to MySQL binaries.
* Auto-add the right directory separator at the end of the path setting
2012-03-02 21:03:52 +00:00
Ansgar Becker
5c62ee51c6 Support Wine/Linux binary of mysql.exe in "Launch command line" feature. See issue #2728 and http://www.heidisql.com/forum.php?t=10158#p10162 2012-03-01 20:59:30 +00:00
Ansgar Becker
39bf7706df Support SSL, sockets and SSH tunnel connections in "Launch command line" action, and log execution command into SQL history. 2012-02-29 22:19:46 +00:00
Ansgar Becker
9a0fe28b64 Add hint for non working command line on MS SQL. 2012-02-28 23:44:54 +00:00
Ansgar Becker
59871b18db Add missing file for previous commit 2012-02-28 23:38:44 +00:00
Ansgar Becker
3370a6a4da Add menu item for launching mysql.exe command line with current parameters. Fixes issue #2728. 2012-02-28 23:34:58 +00:00
Ansgar Becker
156bd42291 Prevent exporting dummy VIEWs from having multiple DEFAULT CURRENT_TIMESTAMP clauses. Fixes issue #2748. 2012-02-28 22:36:25 +00:00
Ansgar Becker
4ef984b52d Do not write "NULL" string in grid export formats other than SQL INSERTs/REPLACEs. Fixes issue #2733. 2012-02-28 22:26:14 +00:00
Ansgar Becker
867d656f0b Fix detection of decimal datatype, so the recently introduced color settings for float's also applies on query results. 2012-02-27 23:15:30 +00:00
Ansgar Becker
cedf5d888e Introduce new preference option "Prefill empty date/time fields". Fixes issue #2708. 2012-02-27 22:36:48 +00:00
Ansgar Becker
af3f590723 Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before. 2012-02-27 22:16:05 +00:00
Ansgar Becker
3da79f5b2b DLL errors fixed in previous commit belong to a place after connection has been established. Reporter of issue #2741 says connection does not even work with r4063. 2012-02-26 09:56:27 +00:00
Ansgar Becker
bfb2c57c3a Silence cosmetic DLL errors. Fixes issue #2741. 2012-02-26 07:37:11 +00:00
Ansgar Becker
504aed87e6 Follow up to r4059, use Tree.CheckState[Node] also when unchecking nodes. See issue #2738. 2012-02-24 23:33:12 +00:00
Ansgar Becker
d6ddd59e39 Ignore current session name when checking if renaming can be done. Fixes issue #2737. 2012-02-24 20:40:13 +00:00
Ansgar Becker
d521a5eb2e End grid cell editor in foreign key list if current tab changes. Fixes issue #2740. 2012-02-24 20:28:58 +00:00
Ansgar Becker
b76bd09d13 Use Tree.CheckState[Node], not Node.CheckState to fix a potential OnCheck event. Fixes issue #2738. 2012-02-24 20:14:11 +00:00
Ansgar Becker
5baf38e7c3 Wrap accessors of SynMemoLog in a critical section. Should fix issue #2725. 2012-02-16 18:20:49 +00:00
Ansgar Becker
cc09d87dc3 Try a blank default date/time value for grid editing. Hopefully fixes issue #2708 finally. 2012-02-15 09:24:45 +00:00
Ansgar Becker
f9fe0083b0 Restore previous selection after refreshing process list (and neighbor tabs). Fixes issue #2717. 2012-02-15 08:44:33 +00:00