Commit Graph

6139 Commits

Author SHA1 Message Date
Ansgar Becker
d5f50d710c Fix crash after copying table to other database, when target database is expanded in DBtree and current session has a background color. Closes #1597 2022-05-30 21:43:47 +02:00
Ansgar Becker
25d15d8b41 Optimization: set up a single TSynMemo instance instead of all, e.g. when creating a new query tab 2022-05-25 13:16:27 +02:00
Ansgar Becker
fc5848b889 Support mouse wheel zoom in grid text editor 2022-05-18 08:13:40 +02:00
Ansgar Becker
1ee23b1682 Issue #1351: optimize StrHasNumChars 2022-05-18 07:56:10 +02:00
Ansgar Becker
bb608ff52c Make counting characters in TDBQuery.HasFullData more precise for diacritical characters. Fixes EnsureFullRow not doing its work when a cell contains some emoji. Reported in the forum: https://www.heidisql.com/forum.php?t=39239 2022-05-17 19:50:48 +02:00
Ansgar Becker
354e984b37 Leave away delimiter at the end of a query batch, in one-go mode. Closes #1583 2022-05-10 07:30:39 +02:00
Ansgar Becker
56262e50a4 Issue #1577: make apphelpers.SelectNode more intelligent, returning true/false to indicate whether it successful went through OnFocusChanging event 2022-05-05 19:13:42 +02:00
Ansgar Becker
fe9bc11505 Do not auto-close search/replace dialog if no occurrences were found. Closes #896 2022-05-05 07:35:19 +02:00
Ansgar Becker
b52337d82d Enable cancel edit button after search/replace. Closes #1579 2022-05-05 07:31:53 +02:00
Ansgar Becker
8955dc8d98 Issue #1577: break loop in search/replace on grid if advancing focus on next node is not allowed through OnFocusChanging event 2022-05-04 07:34:02 +02:00
Ansgar Becker
011ae618d3 Create pull request requirements template 2022-05-04 07:30:37 +02:00
Ansgar Becker
e6f0fab737 Issue #156: code cleanup
* support binary/hex values
* use foreign key icon for menu
* put message string in translation file
2022-04-30 09:41:00 +02:00
Ansgar Becker
60c36420ff Issue #156: merge changes from follow-foreign-key branch, except for the AnyGridDblClick event 2022-04-30 09:03:16 +02:00
Ansgar Becker
a014d395d9 Issue #156: revert changes, needs more testing and some fixes 2022-04-28 19:33:37 +02:00
Ansgar Becker
511e2bf19d Issue #156: merge code from follow-foreign-key branch 2022-04-28 19:23:46 +02:00
Ansgar Becker
a6ad041a7c Convert hardcoded MySQL error codes to named constants, taken from include/mysql/server/mysqld_error.h 2022-04-23 11:45:37 +02:00
Ansgar Becker
c4085bed4e Refactor: move structures for specific network types out of dbstructures, into their own dbstructures.xxx.pas, and include const.inc in project sources 2022-04-23 11:38:26 +02:00
Ansgar Becker
67cd7bb193 Set character set and collation of MySQL/MariaDB connections only if current one is not UTF8/16/32. Closes #287 2022-04-22 17:06:51 +02:00
Ansgar Becker
63a229e35a Issue #1256: restrict altering existing SQLite tables, apart from a few things 2022-04-22 13:08:34 +02:00
Ansgar Becker
e27d9c1b96 Refactor: create and use self explanatory TDBObjectEditor.ObjectExists method 2022-04-22 12:42:37 +02:00
Ansgar Becker
3d55507881 Table editor: force repaint of column list after click on "delete column", which otherwise still displays the deleted columns until the user hovers over it 2022-04-22 12:20:28 +02:00
Ansgar Becker
e48fcf2d0c Issue #945: give id column in table editor slightly more width to let the text fit in 2022-04-22 10:10:11 +02:00
Ansgar Becker
0c3b6f9deb Issue #1256: create spRenameColumn template and prefer that in SQLite and Postgres 2022-04-22 09:09:44 +02:00
Ansgar Becker
1e78543931 Issue #1521: get back partition clause into table editor by fixing the detection for CREATE code without a closing comment at the end 2022-04-22 09:07:09 +02:00
Ansgar Becker
66b9ab7c24 Prevent the last column from being dragged out of any VirtualTree header. Closes #1021 2022-04-21 19:35:57 +02:00
Ansgar Becker
0302093d97 Issue #993: white is now used as background for selected text, which is light blue and unreadable. Set Material/clHighlight to hex bebebe instead. 2022-04-21 19:16:06 +02:00
Ansgar Becker
53a40c073f Set system color clHighlight in Material theme to bright white (was rgb 32464a), to enhance readability of link colors in dialog footers. Closes #993. 2022-04-21 19:00:53 +02:00
Ansgar Becker
f48f8445ca Limit icons on column in table editor to show only one per key type. Closes #945 2022-04-21 17:54:02 +02:00
Ansgar Becker
f626213c3d Support custom line breaks in ConfirmTabClear 2022-04-21 13:18:31 +02:00
Ansgar Becker
2288f0ab6e Let user set line break style for saved query tab files. Closes #892 2022-04-21 12:59:42 +02:00
Ansgar Becker
2ddb8451af Issue #892: support custom line break style when saving log panel contents or CREATE code tabs to file, using the existing "LineBreakStyle" option introduced in 59159c7afd. 2022-04-21 12:37:42 +02:00
Ansgar Becker
89f034cc8e Support renaming columns in SQLite, and generate separate ALTER TABLE queries for each change. Closes #1256 2022-04-21 09:20:33 +02:00
Ansgar Becker
8b4556f292 Support COLLATE clause in SQLite when creating tables 2022-04-21 08:55:43 +02:00
Ansgar Becker
6a182db0b1 Set hint on data grid top label, staying readable when screen width is too small to show the label. Closes #836 2022-04-18 10:59:12 +02:00
Ansgar Becker
5a3873a8d3 Ask user whether modified text shall be stored when pressing cancel button. Closes #817 2022-04-18 10:48:10 +02:00
Ansgar Becker
c29e78c8af Set focus on editor when creating new query tab, closing a previously grid editor. Closes #725 2022-04-18 10:17:10 +02:00
Ansgar Becker
c35b0370a8 Auto-refreshing grid or list only if main form is active. Closes #669 2022-04-17 11:48:48 +02:00
Ansgar Becker
4eda10f726 Update cached object reference with new row count after inserting row, which may enable "Data" option in table copy dialog. Closes #666 2022-04-17 11:33:02 +02:00
Ansgar Becker
459925977d Disable save and discard buttons of routine editor temporarily while saving changes. Closes #616 2022-04-17 10:06:06 +02:00
Ansgar Becker
945883396c Display multi-line column headers in query result grid. Closes #1566 2022-04-14 05:56:59 +02:00
Ansgar Becker
c8d9bd716b Replace redundant ExtractBaseFileName() with TPath.GetFileNameWithoutExtension() 2022-04-13 07:29:10 +02:00
Ansgar Becker
3ac04a8946 Bump version for v12.0 release 12.0 2022-04-12 19:54:00 +02:00
Ansgar Becker
ab07a1b485 Update installer images 2022-04-12 19:22:50 +02:00
Ansgar Becker
8bab9bfa76 Fix wrong SQL for emptying SQLite tables. Closes #1557 2022-04-11 20:19:20 +02:00
Ansgar Becker
2101c73b4a Fix potential endless loop in TDirWatchThread.Execute, as advised here: https://stackoverflow.com/questions/5762258/how-to-monitoring-directory-for-files-in-delphi-xe#comment74167376_5764257 2022-04-10 11:01:19 +02:00
Ansgar Becker
1d1c31f085 Fix Alt+Right/Left not advancing to next query result tab on empty result grid. See https://www.heidisql.com/forum.php?t=39106 2022-04-09 07:43:36 +02:00
Ansgar Becker
9e9918fe50 Merge updates from https://github.com/andgineer/TRegExpr/blob/master/src/regexpr.pas into SynRegExpr.pas. Closes #1562 2022-04-04 20:16:18 +02:00
Ansgar Becker
bd377e3131 Silence unreproducible but still happening crash in DBtreePaintText. See #1270 and uploaded crash reports. 2022-03-30 19:43:13 +02:00
Ansgar Becker
0276390b95 Issue #670: TopLine is wrong when lines are soft-wrapped, so we use RowToLine now 2022-03-29 21:05:49 +02:00
Ansgar Becker
f2b7a31291 Try to fix crash in TDBObject.GetTableColumns and friends, by preferring TDictionary.AddOrSetValue over .Add 2022-03-28 08:08:43 +02:00