784 Commits

Author SHA1 Message Date
ad0305c574 Fix EAccessViolation in TDBObject.GetImageIndex:6 2023-10-22 11:13:46 +02:00
5f58608e90 Issue #1863: add missing PMYSQL_LENGTHS type, and use this for the result of mysql_fetch_lengths(). Replacing and fixing an issue broken since 2009 in c0a9b63f98c5f77274164d2de24187f04ab81e6e 2023-10-20 12:59:47 +02:00
0c94e93198 Issue #1863: attempt to fix a Wine crash in TMySQLQuery.SetRecNo 2023-10-20 06:55:55 +02:00
66d4e2051e Try to fix another crash in DBtreeFocusChanged (FActiveObjectGroup := ParentDBObj.GroupType) 2023-10-19 19:43:46 +02:00
1558bc597f Add context menu on data grid header with "Query exact row count" item, querying SELECT COUNT(*) on the underlying table. See https://www.heidisql.com/forum.php?t=41310 2023-09-30 12:32:46 +02:00
ee6eea0d20 Fix wrong comparison of table and org_table of PMYSQL_FIELD structure, again. Reverts d512e890e024c51d61545960294fd011dbda376f. Closes #1854 2023-09-23 12:44:42 +02:00
e064570a8c TDBQuery.HasFullData: Additional test if column name contains a known LEFT or SUBSTR function. Fixes #1850, at least if the original column names are provided by the library. 2023-09-16 11:55:17 +02:00
dbd5ea9fff Code refactor: move common initialization stuff from 5 derived classes to their parent TDBConnection.Query 2023-09-11 18:37:41 +02:00
5bfafde5c4 Issue #872: fix crash when opening a table with columns defined as INVISIBLE, and ensure such columns are selected and visible in the data grid 2023-08-29 13:42:08 +02:00
4a45341559 Issue #1795: remove menu items and code for explain analyzer on mariadb.org, which is no longer available 2023-07-15 14:30:39 +02:00
d512e890e0 Fix wrong comparison of table and org_table in PMYSQL_FIELD. Found while looking for the cause of issue #1818 2023-05-31 17:23:15 +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
6c7f80ab62 Issue #1800: wrap column default expression in parentheses on MySQL v8.0.13+ when altering a table 2023-04-28 19:00:52 +02:00
8f2e761828 Issue #1800: attempt to distinguish text values from function expressions in a column's default value, for MySQL 8.0.13+ which seems to allow just all functions as default value. 2023-04-28 14:44:54 +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
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