2071 Commits

Author SHA1 Message Date
7ea2672a2b Add a safety check to avoid AVs in rare situations, where the number of db objects has been decreased from outside. Fixes issue #2114. 2010-08-13 20:03:28 +00:00
88e7f7aa05 Implement query profiling in helpers box. Enhance usability of turning the listbox + tabset into a tree, with 5 root nodes instead of 5 tabs. Fixes issue #902. 2010-08-13 19:42:54 +00:00
049c2d9e11 Add icons to subtabs in "Host" tab, making it easier to find the right tab. 2010-08-01 10:45:52 +00:00
95554f6f44 Fix too wide recent filters combobox, missing change for r3463. 2010-07-31 17:19:32 +00:00
25fb0ed266 Refactor code in SQL help dialog, replace the TTreeView with a VirtualTree. 2010-07-31 17:16:08 +00:00
b13ce034be Store last session name at disconnect time instead when when connecting. Fixes issue #2102. 2010-07-26 19:16:59 +00:00
b3526fa9d1 If a session is configured to prompt for username + password, only prompt on the initial connect, not on each reconnection, which is annoying and superfluous. 2010-07-24 13:32:09 +00:00
33ff2e95d3 Add button right besides recent filter pulldown menu, for clearing data grid related stuff for selected table, session or all sessions. Fixes issue #2096. 2010-07-24 13:23:17 +00:00
c297024b60 Minor code cosmetic 2010-07-20 07:55:32 +00:00
d58265372f Apply more unique icon to SQL export action, so it has a different one than the grid export action. 2010-07-20 07:53:46 +00:00
f6e915b8d3 Table editor fails to detect the default collation on some tables. Fetch it from SHOW TABLE STATUS instead as fallback. See http://www.heidisql.com/forum.php?t=6202 2010-07-20 07:42:39 +00:00
8e17e4a999 Fix date time grid editor for YEAR data type. Fixes issue #2078. 2010-07-20 06:29:14 +00:00
8c34a9e15a Session manager: Add checkbox option for users who want to be prompted for username + password rather than saving that to registry. Prompt window itself is called from within TMySQLConnection.SetActive. 2010-07-19 20:06:09 +00:00
9c3488b457 Add context popup menu on column list which allows hiding/displaying single columns. Also fixes hidden collation column after having introduced the new zerofill column in r3441. 2010-07-17 15:10:11 +00:00
f49c871d31 Immediately call popup text editor for cells which either contain line breaks or huge text over 100k. Fixes issue #1651. 2010-07-16 17:44:56 +00:00
e3f7072df0 Fix query splitter: "DELIMITER xyz" must be followed by some space char, this is not optionally. Broken in r3432. Fixes issue #2092. 2010-07-16 17:17:49 +00:00
65b701681e FocusedColumn may also be "InvalidColumn" (-2) when the relevant grid column is hidden. Fixes issue #2088. 2010-07-14 22:36:37 +00:00
b97c41bc6c Triggers need to be exported after tables, just like views. Fixes issue #2077. 2010-07-14 10:58:53 +00:00
aad99190ae Table editor: Apply default length/set for new columns as long as user didn't touch it. Fixes issue #2084. 2010-07-14 10:52:34 +00:00
6a3e551d16 Remove code which is never executed - BLOB preview is done internally, not via temporary file. 2010-07-13 19:24:59 +00:00
4844e2d975 Fix exceptions triggered when some grid cell editors are destroyed, e.g. by accessing the registry too late. Hopefully fixes issue #2046. 2010-07-13 19:22:33 +00:00
6b03976eb7 Attempt to fix some memory leaks in TMySQLQuery, when it gets destroyed. Should already be done by the compiler but who knows, probably this fixes issue #2063. 2010-07-13 17:59:00 +00:00
39843aabb7 Remove dead code 2010-07-13 16:55:20 +00:00
47afa8dfe7 Add "Clear file list" to query load menu. Fixes issue #2082. 2010-07-13 14:54:45 +00:00
2796965146 Remove 3 dead constants 2010-07-11 20:13:53 +00:00
e7bfca41b4 Add LIMIT 1 clause to grid UPDATE queries, to make these safer on tables without sufficient unique key. Fixes issue #2079. 2010-07-11 18:56:19 +00:00
f5a5ec4686 Add fallback when trying to detect length of column. Fixes an AV in rare special cases. 2010-07-07 17:07:15 +00:00
2e28d2a1c6 Do not trigger completion proposal in query editors when cursor is inside a comment. Fixes issue #2070. 2010-07-05 18:31:53 +00:00
05c7e06ed2 Force reinitializing nodes in ListDatabases when connecting. Fixes issue #1491, the hot tracking AV. 2010-07-05 17:30:19 +00:00
7cd1c7b0ab Add support for ZEROFILL flag in table editor. Introduces a new checkbox column in the columns list. Fixes issue #570. 2010-07-04 13:35:54 +00:00
5757899eaa Bring back database filter pulldown, for users who dislike to create one session per filter. Fixes issue #2054. 2010-07-04 10:59:46 +00:00
49d0bb3193 Remove Mince() function to shorten a file path - setting a label's EllipsisPosition to epPathEllipsis does the same. 2010-07-02 23:26:47 +00:00
ff1467c749 Remember state of WordWrap button on text and hex editor. Fixes issue #2055. 2010-07-02 23:08:06 +00:00
ac571734f6 Add menu item for inserting UNIX timestamp into grid cells. Fixes issue #2060. 2010-07-02 22:58:12 +00:00
8b726e2911 Text and hex editor forms have "toolwin" style, which prevents the app from appearing when pressing Alt+Tab. Additionally, Alt+Tab leaves the app in foreground when such a window had focus. This is a Windows issue, as one can read here: http://edn.embarcadero.com/article/26050 . Set both forms back to bsSizable, fixes issue #2061. 2010-07-02 22:43:19 +00:00
0b937cd6d2 Minor: Enhance wording on grid export caption. No need to mention all 6 different export formats in one short caption. 2010-07-02 16:48:12 +00:00
6a84f1a4af After disconnecting, accessing an old TMySQLQuery's connection can result in unhandled exceptions. Catch all of them in TMainForm.tabsetQueryGetImageIndex, not just those of which we're aware of. Fixes issue #2048. 2010-07-01 22:44:24 +00:00
f8b5924d97 Do not raise, just put a log info when previously focused db or table is gone after refreshing. This is a normal case when db or table was deleted from outside or via query. Fixes issue #2059. 2010-07-01 22:03:29 +00:00
63a69de637 Adjust offset stuff in SQL splitter routine, DELIMITER department. Fixes issue #2053. 2010-07-01 19:45:23 +00:00
4fb7f4cdc5 When copying HTML from grid rows, StreamToClipboard needs its 3rd parameter set to true to create the required clipboard header for rich text editors. Also, calculate values for StartHTML and EndHTML - seems required by Mozilla based applications like Thunderbird. Fixes unformatted HTML pasted into rich text editors. 2010-07-01 18:58:00 +00:00
33bf95ba12 Foreign key constraint symbol names must be unique in a database. To avoid violation errors the "Copy table" dialog should just leave the CONSTRAINT clause out from the CREATE TABLE code. In that case MySQL auto creates a valid name on demand. See http://www.heidisql.com/forum.php?t=6086 2010-06-30 23:37:23 +00:00
780cf0f19f Add support for exporting grids as Wiki table markup 2010-06-30 23:21:28 +00:00
f47eb39316 Merge 5 GridToXYZ export routines into one, so there is less code to maintain and to make it easier to add further export formats. 2010-06-30 22:34:42 +00:00
5f1c8ae5ff Create query tab array early enough so we don't access them before by actDataPreviewExecute(). Fixes an AV on startup when preview panel was active. 2010-06-30 18:31:14 +00:00
2f67d5447a Assign hotkeys to controls on search and replace dialog. See http://www.heidisql.com/forum.php?t=5801 2010-06-28 21:57:06 +00:00
b1b81bd803 Increase auto calculated column width slightly, so the flashing "..." button has room when editing cells, without cutting text. Fixes issue #2051. 2010-06-28 19:49:41 +00:00
74327bbe9e Remove superfluous uses unit. 2010-06-25 06:36:37 +00:00
a795f0cbac Use the right expression group when detecting "AT" date. Fixes issue #2041. 2010-06-25 06:35:15 +00:00
346e4698eb Be sure later calls to SetRecNo are executed after discarding a new grid row. Fixes issue #2031. 2010-06-22 05:39:45 +00:00
5d96ec07fc If a file does not contain a BOM, do not advance the stream position for later readers. Fixes issue #2035. 2010-06-21 18:30:18 +00:00