348 Commits

Author SHA1 Message Date
0ac204c10c Fix non-painted pasted columns in table editor 2025-01-14 20:24:18 +01:00
4cc6134cb0 Issue #1777: indicate functional key part in table editor with a different icon 2025-01-11 16:40:36 +01:00
93c59b17a8 Issue #872: add support for creating and altering INVISIBLE columns in table editor with MariaDB 10.3.3 and MySQL 8.0.23 2025-01-05 13:49:45 +01:00
1d1a8b1a9b Code readability: use named constants for column indexes on table editor 2025-01-05 13:15:41 +01:00
d49c84326e Fix incompatible parameters for OnDragDrop event on some VirtualTree's 2025-01-05 12:47:35 +01:00
537ee27111 Issue #1253: minor code simplification and inline documentation 2024-11-03 11:35:15 +01:00
fa3a04c7ae Issue #1253: fix queries for dropping primary or unique key in PG tables 2024-11-01 08:25:49 +01:00
a5905834bf Table editor: fix crash happening through clear indexes button 2024-10-31 17:46:13 +01:00
67af2666e2 Issue #619: support spatial columns with an SRID in table editor, on MySQL 8.0+ 2024-08-16 12:21:16 +02:00
1eff7a566a Issue #1605: support dropping table indexes on SQLite 2024-06-21 14:47:24 +02:00
5b214a3d75 Issue #1965: show warnings from some internal queries as well, and when running an SQL file 2024-06-18 16:53:09 +02:00
f95140d9de Issue #1604: support creating table indexes on SQLite 2024-06-17 10:23:57 +02:00
1ea5c51e24 Issue #1604: fix crash when showing index tab due to uninitialized SubParts and Collations in SQLite and PostgreSQL 2024-06-17 09:20:07 +02:00
acedfc7c87 Table editor: disallow editing direction/collation of index node level 2024-06-17 07:54:54 +02:00
21ab7c8917 Issue #1959: fix shrinking/repositioned edit boxes in options tab of table editor, when opening a second table. 2024-05-31 07:44:38 +02:00
db014bda03 Use custom tab width and tabs-to-spaces setting uniquely in all places where we generate code. Provides a new CodeIndent() helper. Closes #1330 2024-05-19 12:22:43 +02:00
c5f93d23e9 Issue #139: use alternating row background in database tab, and in all sub tabs of the host tab 2024-05-01 12:00:18 +02:00
604047f8d6 Issue #139: minor optimization 2024-04-29 12:08:24 +02:00
f49804afbe Alternating row background colors in table columns list, if activated by user. Closes #139 2024-04-29 09:24:47 +02:00
4c07c36411 Issue #1586: include "COLLATE xyz" clause when applying collation and user checked the "Convert data" option, so the columns do not get the default collation of the new charset 2024-04-10 12:13:57 +02:00
fcca03acae Fix invalid SQL code for dropping foreign key constraint in PostgreSQL mode. Closes #1247 2024-03-28 19:33:48 +01:00
838e461805 Table editor: fix expression for newer MariaDB servers when searching the explanation for the "incorrectly formed" error 2024-03-01 07:29:04 +01:00
cbd4854f4a Table editor: when user runs into the cryptic "constraint is incorrectly formed" message, append a more meaningful line from SHOW ENGINE INNODB STATUS. 2024-02-28 11:22:58 +01:00
95151d6a3e Issue #1512: add basic support for indexes with descending column direction 2024-02-02 08:16:37 +01:00
f9297d4c7d Use the same hotkey (Ctrl+S) for saving a table/trigger/... as for saving a query file. Closes #1619 2023-11-03 12:43:07 +01:00
da4a327eee Fix sporadic crashes in various calls to [TWinControl].SetFocus, with the new class helper .TrySetFocus 2023-10-16 20:50:10 +02:00
86a8840cc0 Introduce TClipboardHelper.TryAsText, suppressing crashes when the OS blocks access to the clipboard. Replaces my previous GetClipboardAsText implementation. 2023-10-10 07:12:15 +02:00
495ced5bae Issue #861: same style for row id column in grid and table editor 2023-10-10 06:42:52 +02:00
9f05f5ff8b Fix crash in various places where we just try to get the current clipboard text 2023-10-09 07:24:24 +02:00
d28d03b6dd Highlight active tab of most page controls, by adding greyscale icons to image list and using these for all inactive tabs. See https://www.heidisql.com/forum.php?t=41323 2023-10-03 13:34:28 +02:00
7d9f59381f Support serial columns in Posgres, which is different from auto_increment on MySQL. Affects grid editing and table designer. Closes #279 2023-05-13 10:03:07 +02:00
82b1a0fe8f Support ON UPDATE SET DEFAULT and the same for ON DELETE in PostgreSQL foreign keys. See https://www.heidisql.com/forum.php?t=40413 2023-03-06 20:12:13 +01:00
0d9de512cd Remove unit scopes from project settings, prefer fully qualified unit names in uses clauses. Enhance readability and compiler performance. 2022-12-26 17:59:19 +01:00
c7dc63706d Support comments on table indexes via table designer. Closes #128 2022-07-18 17:02:36 +02:00
965e88b579 Delphi 11.1: fix VirtualTree package files, fix missing uses clauses, and some newly required type casts 2022-06-18 18:08:00 +02:00
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
63a229e35a Issue #1256: restrict altering existing SQLite tables, apart from a few things 2022-04-22 13:08:34 +02:00
e27d9c1b96 Refactor: create and use self explanatory TDBObjectEditor.ObjectExists method 2022-04-22 12:42:37 +02:00
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
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
0c3b6f9deb Issue #1256: create spRenameColumn template and prefer that in SQLite and Postgres 2022-04-22 09:09:44 +02:00
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
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
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
e505b54bdd Issue #1503: fix unsaved setup of columns in lists on object editors (table + routine editors effectively are the only ones with lists) 2022-02-21 17:35:25 +01:00
142e26ec22 Issue #1503: move SaveListSetup and RestoreListSetup to extra_controls unit, and handle column widths DPI independently 2021-12-26 13:58:25 +01:00
9baeb9f018 Outsource large list of MySQL functions into separate .ini files, one per server type. Todo: definitions for SQLite and Interbase. 2021-10-11 21:32:55 +02:00
a469d89227 Issue #1169: give items in TDBDatatypeIndex a different prefix (dt => dbdt), to fix a conflict with those from Delphi's database components 2021-06-26 17:44:50 +02:00
dd38ba4f6f Code cosmetic: rename implodestr() to Implode() 2021-06-03 08:32:06 +02:00
07e1786d46 * fix wrong substring offset in TForeignKey.SQLCode
* fix TForeignKey.ReferenceTableObj with dots in database name
* use the fixed TForeignKey.ReferenceTableObj instead of .ReferenceTable in two places
Closes #1364
2021-05-23 09:25:08 +02:00