770 Commits

Author SHA1 Message Date
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
0fedb314eb Issue #1771: add additional sleep time between SSH process checks, so it does not matter when WaitForSingleObject does not really wait (on Wine) 2023-03-01 09:17:28 +01:00
603e162ba7 Issue #1771: prefer a larger SSH process check interval for larger timeouts (timeout:4s => check interval:400ms), and log process exit code each interval. 2023-02-28 05:50:36 +01:00
4abc5c1b3d Reduce crash probability in TSecureShellCmd.Connect when user disconnects from session before tunnel is reestablished. 2023-01-26 08:11:39 +01:00
7ff9b2e9b7 Refactor internal structures for grid/table sorting, prefer TObjectList over Array 2023-01-22 12:49:53 +01:00
9c5da0f699 Issue #921: add SSH tunnel support for SQL Server in TCP/IP mode. "SSH tunnel" tab is not hidden any longer for unsupported network types, only the checkbox is disabled then. 2023-01-10 20:28:43 +01:00
96c7334843 TConnectionParameters.GetImageIndex: prefer more specific icon for MySQL on RDS sessions 2023-01-02 20:43:35 +01:00
d7689d5abf Issue #1721: Let the user disable a session's SSH tunnel configuration, similar to the SSL checkbox 2023-01-02 20:40:33 +01:00
ae883a0a80 Include some System.Generics.* units without using project's unit scopes or aliases 2022-12-29 17:59:23 +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
aef3b7c1f5 Issue #1724: silence another exception in MS SQL mode, when checking for IsNull on a field. Seems to be just a different version of the same bug described in #496 2022-12-10 14:55:24 +01:00
889a1b33c7 SQL export: Calculate a reasonable LIMIT clause when "Get full table status" session setting is disabled, causing AvgRowLen<=0. See https://www.heidisql.com/forum.php?t=40058 2022-12-04 20:17:51 +01:00
d42766c373 Quote BIT values again, in EscapeString version with data type. Closes #1709 2022-11-24 18:34:45 +01:00
b20635258c Use rds_kill_query procedure on RDS to kill a running query. Closes #1705 2022-11-24 18:03:59 +01:00
7c6cc45437 Issue #1705: Add new network type "MySQL on RDS", to support its different query for killing a process. New icon provided by @Bens-ct. 2022-11-23 20:04:43 +01:00
9265598d41 CSV scanner: lowercase name of table and columns, and unify non-word characters to underscore 2022-11-14 20:22:25 +01:00
39377cc979 Issue #1695: attempt to fix a check for a named session before storing the currently used database name 2022-11-04 18:43:48 +01:00
9b68360b54 SSH tunnel: process error pipe contents only if std pipe is empty. See https://www.heidisql.com/forum.php?t=39851 2022-10-27 17:27:34 +02:00
1756d46d8b Allow hex values to have an odd number of digits. See https://www.heidisql.com/forum.php?t=39864 2022-10-26 19:22:07 +02:00
ea1149ff7d Allow integers and floats to be entered in hexadecimal format in grids. Basically means they're not wrapped in quotes now. See https://www.heidisql.com/forum.php?t=39864 2022-10-23 12:02:55 +02:00
fb2668b48c Issue #1673, #1351 and #1658: use a general approach in TDBQuery.HasFullData for all server types, where we again use Delphi's Length() against a number range of 128..256. 2022-10-06 18:59:03 +02:00
3565f8cce3 Fix text value in popup editor cut to 256 chars, for all modes other than MySQL. Closes #1673 2022-10-06 17:49:46 +02:00
3623d691f1 Issue #1652: don't add collation clause to a modified or new JSON column 2022-10-04 18:59:55 +02:00
0148564047 Issue #1670: fix text field editing with more than 256 chars on MS SQL 2022-09-27 09:06:17 +02:00
8e38e4ee99 Use empty default host/ip for new SQLite sessions, to avoid running into some out-of-memory issue. Closes #1602 2022-09-21 07:49:54 +02:00
47f5058ae3 Fix previous approach in TDBQuery.HasFullData and StrHasNumChars, which used CharNextW() and stopped at null bytes within binary strings. Again use Length() instead, but let it be longer than GRIDMAXDATA. Closes #1658 2022-09-18 11:33:53 +02:00
9e16c78d37 Use NULL in new row for column with timestamp expression, to fix a following UPDATE query using an empty string in its WHERE clause. Closes #1645 2022-08-18 06:53:33 +02:00
7101eb999f Leave away NULL clause for new column which allows NULLs. Closes #1642 2022-08-16 18:53:32 +02:00
c7dc63706d Support comments on table indexes via table designer. Closes #128 2022-07-18 17:02:36 +02:00
770e469804 Strip comments from procedure parameters before parsing. Closes #1477 2022-07-18 14:45:26 +02:00
c992656aab Add support for MariaDB's new UUID column type. Closes #1545 2022-06-28 20:42:14 +02:00
abaa9de070 Add basic support for listing and showing views in SQLite mode. Closes #1196 2022-06-26 20:42:15 +02:00
97b3728f13 SSH tunnel: use the shell executable filename in all dialog captions 2022-06-23 07:46:07 +02:00
66b07c0c5e Issue #287: v5.1 servers report utf8mb4 from mysql_character_set_name, although it's latin1. Trust the returned charset only on v5.5+ servers, and reset it on older servers. 2022-06-17 14:46:45 +02:00
85cbd86367 Issue #1613: fix missing detection of spatial keys 2022-06-07 19:31:11 +02:00
885bf8d823 mysql_character_set_name() from libmysql.dll reports utf8* if in fact it's a latin* charset. Force utf8* charset in that case. See https://www.heidisql.com/forum.php?t=39278 2022-06-03 07:46:15 +02:00
1ee23b1682 Issue #1351: optimize StrHasNumChars 2022-05-18 07:56:10 +02:00
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
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
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
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
0c3b6f9deb Issue #1256: create spRenameColumn template and prefer that in SQLite and Postgres 2022-04-22 09:09:44 +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
8b4556f292 Support COLLATE clause in SQLite when creating tables 2022-04-21 08:55:43 +02:00
8bab9bfa76 Fix wrong SQL for emptying SQLite tables. Closes #1557 2022-04-11 20:19:20 +02:00
f2b7a31291 Try to fix crash in TDBObject.GetTableColumns and friends, by preferring TDictionary.AddOrSetValue over .Add 2022-03-28 08:08:43 +02:00
3d90ce24d1 Silence two crashes in QuotedDatabase and IsSameAs. See https://www.heidisql.com/forum.php?t=39040 2022-03-27 14:40:07 +02:00
9a9b111c41 Try to fix crash happening in TDBObject.GetImageIndex after server sided disconnect, trying to set the current database 2022-03-27 09:30:15 +02:00
a5544ba0c8 Issue #1169: fix TInterbaseConnection.GetCharsetTable with wrong identifier quotes 2022-03-13 20:28:21 +01:00
f106dfcd48 Issue #1169: fix usage of first created driver link for all later Interbase/Firebird connections, as we support different libraries 2022-03-10 06:58:46 +01:00