Commit Graph

367 Commits

Author SHA1 Message Date
Ansgar Becker
dbce6b5a0f fix: wrong SQL on MS SQL when renaming table per table editor
Refs #1997
2026-02-27 15:17:13 +01:00
Ansgar Becker
6262880486 fix: repaint columns list after move up/down a column
Was reported in the forum: https://www.heidisql.com/forum.php?t=44760
2026-02-19 16:47:19 +01:00
Ansgar Becker
c450f516b7 refactor: replace FSQLSpecifities with a TSqlProvider, and outsource many hardcoded SQL queries to the dbstructures.* units
Refs #667 and #1880
2026-02-15 15:04:22 +01:00
Jochen Neubeck
a12f21b275 Fix #1835 - Initial FK names assigned in TfrmTableEditor.listForeignKeysNewText() were lacking the referencing table's table name in case the referencing table was not created yet 2026-02-11 16:16:37 +01:00
Ansgar Becker
1913f1d193 fix: crash when moving added column to very bottom
Closes #2400
2026-02-10 18:48:22 +01:00
Ansgar Becker
c568e1ccff fix: keep column default value in table editor, when user changes its datatype to one in the same category as before (int => bigint)
Refs #1374
2026-02-06 14:10:26 +01:00
Ansgar Becker
7be7f3ed83 fix: allow $$ as delimiter again on non-PostgreSQL connections, and ` on non-MySQL connections
Refs #2385
2026-02-01 11:50:08 +01:00
Ansgar Becker
07d29c8e30 fix: cannot save new table when added column was removed
Refs #2326
2025-12-07 12:29:47 +01:00
Ansgar Becker
3aad696e56 fix: set modified flag after move per button
Refs #2220
2025-10-26 12:53:07 +01:00
Ansgar Becker
bdc975ec6d fix: column reordering per drag and drop
Closes #2220
2025-10-26 12:17:17 +01:00
Ansgar Becker
c9a23b2be7 Issue #900: allow modify length of index with binary column 2025-10-13 17:12:43 +02:00
Ansgar Becker
7261083c3c Issue #2220: fix no longer working move up/down of selected columns, see https://www.heidisql.com/forum.php?t=44467 2025-10-13 16:58:58 +02:00
Ansgar Becker
e110a2b28e Issue #2220: allow sorting columns in table designer by click on their header 2025-10-10 11:37:04 +02:00
Ansgar Becker
036e967dd0 Merge change from lazarus branch, done for issue #2222 2025-10-09 15:08:23 +02:00
Ansgar Becker
d8bf7a62cd Issue #2122: support table comment syntax when creating new PostgreSQL tables 2025-09-17 19:56:03 +02:00
Ansgar Becker
ec2844407d Issue #2249: call FixVT() in FormCreate consequently, so the trees do not change their row height after the second use. Also increase TextMargin and reduce Margin. 2025-09-16 20:40:49 +02:00
Ansgar Becker
29ab18f4c2 Issue #1313: support MariaDB's COMPRESSED attribute for columns in table editor 2025-08-28 18:50:19 +02:00
Ansgar Becker
d2c758bc99 Issue #2205: Remove subpart from column indexes when user changed its data type to non-text 2025-07-03 19:12:38 +02:00
Ansgar Becker
686ef30fb4 Issue #1853: try to fix column definition changes on MS SQL wrt collation quoting and default value 2025-05-16 14:44:38 +02:00
Ansgar Becker
0ac204c10c Fix non-painted pasted columns in table editor 2025-01-14 20:24:18 +01:00
Ansgar Becker
4cc6134cb0 Issue #1777: indicate functional key part in table editor with a different icon 2025-01-11 16:40:36 +01:00
Ansgar Becker
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
Ansgar Becker
1d1a8b1a9b Code readability: use named constants for column indexes on table editor 2025-01-05 13:15:41 +01:00
Ansgar Becker
d49c84326e Fix incompatible parameters for OnDragDrop event on some VirtualTree's 2025-01-05 12:47:35 +01:00
Ansgar Becker
537ee27111 Issue #1253: minor code simplification and inline documentation 2024-11-03 11:35:15 +01:00
Ansgar Becker
fa3a04c7ae Issue #1253: fix queries for dropping primary or unique key in PG tables 2024-11-01 08:25:49 +01:00
Ansgar Becker
a5905834bf Table editor: fix crash happening through clear indexes button 2024-10-31 17:46:13 +01:00
Ansgar Becker
67af2666e2 Issue #619: support spatial columns with an SRID in table editor, on MySQL 8.0+ 2024-08-16 12:21:16 +02:00
Ansgar Becker
1eff7a566a Issue #1605: support dropping table indexes on SQLite 2024-06-21 14:47:24 +02:00
Ansgar Becker
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
Ansgar Becker
f95140d9de Issue #1604: support creating table indexes on SQLite 2024-06-17 10:23:57 +02:00
Ansgar Becker
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
Ansgar Becker
acedfc7c87 Table editor: disallow editing direction/collation of index node level 2024-06-17 07:54:54 +02:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
604047f8d6 Issue #139: minor optimization 2024-04-29 12:08:24 +02:00
Ansgar Becker
f49804afbe Alternating row background colors in table columns list, if activated by user. Closes #139 2024-04-29 09:24:47 +02:00
Ansgar Becker
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
Ansgar Becker
fcca03acae Fix invalid SQL code for dropping foreign key constraint in PostgreSQL mode. Closes #1247 2024-03-28 19:33:48 +01:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
95151d6a3e Issue #1512: add basic support for indexes with descending column direction 2024-02-02 08:16:37 +01:00
Ansgar Becker
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
Ansgar Becker
da4a327eee Fix sporadic crashes in various calls to [TWinControl].SetFocus, with the new class helper .TrySetFocus 2023-10-16 20:50:10 +02:00
Ansgar Becker
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
Ansgar Becker
495ced5bae Issue #861: same style for row id column in grid and table editor 2023-10-10 06:42:52 +02:00
Ansgar Becker
9f05f5ff8b Fix crash in various places where we just try to get the current clipboard text 2023-10-09 07:24:24 +02:00
Ansgar Becker
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
Ansgar Becker
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