682 Commits

Author SHA1 Message Date
d3b6dd6399 Do not create drop down menu on foreign key'd cells in data grid if the foreign table contains more rows than we display in the drop down. That way, the user is able to enter other foreign values than those provided by the dropdown list. See http://www.heidisql.com/forum.php?t=5736#p5930 2010-06-11 19:38:57 +00:00
ada591c368 Repeat automatic calculating optimal column widths in data grid on refresh, as long as user did not resize some column. Fixes issue #2005. 2010-06-10 19:05:14 +00:00
4a78cad0a9 Keep scroll offset when refreshing data grid. Fixes issue #2003. 2010-06-10 18:48:25 +00:00
3476fbed01 Reset stored db and table names when dbtree focus changed, so the grid also refreshes when you add or remove column(s) in the table editor, switch to another table and then back. Fixes issue #1970. 2010-06-10 17:40:09 +00:00
7d29518d7f Fix sporadic AV reported in forum: http://www.heidisql.com/forum.php?t=5911#p5925 2010-06-10 08:37:44 +00:00
6b9dbf18ee Avoid an AV in cases when main tab is "Data" on startup. 2010-06-09 22:24:43 +00:00
743f9aff2a Cancel grid editors early enough on main tab changes. Fixes issue #1996. 2010-06-09 22:22:47 +00:00
95f1f59cde Node can be non-assigned in Grid.OnFocusChanged - avoid AVs in such cases. Fixes issue #1990. 2010-06-04 18:05:54 +00:00
0767d5387a Replace "Image view" action code which opened BLOBs in external app by a home brown preview area for images in BLOBs, using GraphicEx library for detecting image types. Also, add a "Save to file" action for any grid cell content. Fixes issue #1960. Fixes issue #492. Fixes issue #955. 2010-06-03 23:19:27 +00:00
d447a9a1a7 AnyGridEnsureFullRow already does a safety check for the right grid and returns True on all other grids. 2010-05-31 22:29:55 +00:00
125995f37f Fix "LEFT(blobcol)" from being used as column name in quick filter menu. 2010-05-31 22:28:05 +00:00
f01823fb56 Fix AV when checking if "Image view" shall be enabled or disabled. Fixes issue #1974. 2010-05-31 22:18:05 +00:00
84c638f0de Prefer VCL function StripHotkey() over StringReplace 2010-05-30 23:19:23 +00:00
00cf4d95cc Straighten popup menus for data grid and query grids - use one for both, and disable those few irrelevant items when on a query grid. Reveals some missing items for query grids, such as "Set NULL". Also, turn "Set NULL" into a TAction including an icon. 2010-05-30 23:09:06 +00:00
3fe935b5be Disable ImageView action early so the user does not run into error message only because some non-BLOB is focused. 2010-05-29 16:19:03 +00:00
9b1ba49939 Silence two compiler notices. 2010-05-29 00:23:24 +00:00
d71f9c7295 Be sure to free the allocated TFileStream also in error cases, to avoid successive AVs when trying to write the same file. 2010-05-28 23:23:44 +00:00
2e301d1095 Code cosmetic: Do not pass default parameter in one zillion callers of ShowStatusMsg() 2010-05-28 23:09:38 +00:00
ac50ae75ce Display status message on long running sort operations in query grids. 2010-05-28 23:00:57 +00:00
32c905524e Set result grid's parent control *before* hiding it. Fixes issue #1973. 2010-05-28 22:48:20 +00:00
5351f8df23 New feature: When mouse hovers over status bar panel holding the server version, display various connection related details in a hint. 2010-05-28 19:41:17 +00:00
389d9a5a9c Invert background colors of selected/unselected result tabs, to enhance readability. 2010-05-28 14:04:02 +00:00
8f1e3107fa Code cosmetic: Move default status message to the right procedure. 2010-05-28 13:44:58 +00:00
56ce17181f Move detection of best table name to helpers unit, away from several methods where we make use of it. Fixes issue #1967. 2010-05-27 18:11:51 +00:00
823269e2ca Fix cosmetic bug in r3347: If very right status bar panel has empty text the hourglass icon was displayed. Instead, force its text in these situation to "Ready". 2010-05-27 07:36:37 +00:00
d14efcc922 Indicate SQL errors in progress bar, if Aero is activated. 2010-05-27 00:09:21 +00:00
e9063271f1 Draw various icons in status bar. 2010-05-26 23:58:30 +00:00
9984bf0236 Issue #1135: Implement tabs for multiple batch results in a query tab. Does not yet show multi results of stored procedures. Maximum number of tabs is customizable in Preferences > Data. 2010-05-26 23:11:08 +00:00
6468776ba0 Display size of SQL file while loading into query editor, so it's easier to decide whether to load or run the file. 2010-05-22 06:34:09 +00:00
58b8f5451d "Run current query" ran previous query when cursor is placed behind the delimiter of it. Fixes issue #1956. 2010-05-22 06:19:53 +00:00
779b08bdc8 Fix offset number current query while executing a query batch. 2010-05-21 06:02:50 +00:00
336f991bc2 Display original length of snipped queries in SQL log. 2010-05-21 06:01:43 +00:00
e38db938b7 Rewrite parseSQL routine into two new ones: GetSQLSplitMarkers() and SplitSQL(). Also, use these to turn "Run current line" query action into "Run current query". Fixes issue #821. 2010-05-20 18:30:55 +00:00
1ab975b0d5 Move responsibility for well formed floats and integers from TMySQLQuery.SetCol() to caller, so new values don't get touched at all, and to avoid double-unformatted numbers in "Duplicate row" feature. Fixes issue #1936. 2010-05-12 18:33:21 +00:00
dd40361d81 Always invalidate db objects in "Database" tab in some refresh action. Active database is probably even indeterminable within a refresh and so a check for same db name fails and AVs follow because of non initialized nodes in ListTables. Fixes issue #1909. 2010-05-11 22:31:47 +00:00
6c05e7f6c8 AnyGridEnsureFullRow does surely fail on non-result grids. Avoid AV when copying cell text. Fixes issue #1929. 2010-05-10 18:28:08 +00:00
556b0f54a1 Silence compiler warning 2010-05-09 20:46:51 +00:00
361580a03c Don't throw exceptions when user tries to set disallowed delimiter, just pop up an error message. Fixes issue #1899. Also, bring some nearby stuff in ExecSQLClick() into the right order: Show hour glass, display number of current query in status bar, and optimize some minor stuff. 2010-05-08 23:20:11 +00:00
593520dc1b Prefer server over local date/time as default value when starting grid editor on a NULL date/time. Fixes issue #1835. 2010-05-08 17:05:38 +00:00
de4c929020 Fix image view in grid cell. 2010-05-08 13:53:14 +00:00
88a524a1f0 Validate state of grid actions when query grid gets or loses focus. Fixes issue #1882. 2010-05-08 12:34:46 +00:00
fa9daf9406 Before inserting a new grid row, ensure current row modifications don't throw SQL errors. Related to issue #1882. 2010-05-08 12:19:36 +00:00
6b6dd6f973 Reset indicators of currently loaded db.table in DataGrid when disconnecting. Fixes issue #1898. 2010-05-08 08:29:50 +00:00
0b1c6d350c Enable "Delete row(s)" action and friends after refreshing data grid. Fixes issue #1922. 2010-05-07 17:16:24 +00:00
7ce555ff1a Straighten sort logic in lists and db tree:
* Let both header clicks and TDBObjectComparer consistently use the same compare callback function CompareAnyNode()
* When refreshing a list, VT.SortTree sorts nodes if toAutoSort is set. Then, selected nodes are mostly different ones than before refreshing. Also, what GetVTCaptions did was only looking after the first column caption which can exist besides duplicates. So, for now, do not restore selected nodes after refreshing a list, which is now more standard behavior.
Fixes issue #1911.
2010-05-06 22:46:35 +00:00
42899facff Update server version panel also on reconnect. Fixes issue #1891. 2010-05-06 18:41:17 +00:00
05b07eb8f2 Implement editing capabilities into TMySQLQuery, and make query results editable by using all the same events as in DataGrid. Most probably some bugs to fix now.
* Fixes issue #723
* Fixes issue #873
2010-05-05 21:39:15 +00:00
b3b1710c35 Introduce EDatabaseError exception class, so we're able to handle only those and let others raise the exception up to MadExcept. Helps finding non-database related AVs as users are able to get the callstack now. Similar to r3292 but more consistent all over the code now. 2010-04-24 13:56:57 +00:00
97f01a175b Move database filter again from mainform to session manager, so people without privilege to run SHOW DATABASE are not stuck. Fixes issue #1485. Also, allow to see available databases when user does a dropdown. Also, simplify logic for refreshing database list in mainform. 2010-04-22 15:16:27 +00:00
9b786c81e0 Make RefreshActiveTreeDB more safe against follow up errors, non responding db tree. 2010-04-19 22:27:03 +00:00