454 Commits

Author SHA1 Message Date
178d92e273 Cache the myriad of SELECT 123::regclass queries in a hash table on the PostgreSQL connection object. Closes #249, closes #538 2019-05-18 08:27:50 +02:00
2854c74d13 Remove -batch parameter from plink command line, so we have a prompt when a host key is not yet cached. Closes #639 2019-05-15 20:21:01 +02:00
f893a8de75 Add support for SSH tunneled PostgreSQL connections. See issue #78 2019-05-14 07:57:00 +02:00
927e144cce Set up SSL parameters not only in TCP/IP mode 2019-05-14 06:59:59 +02:00
8ac1c745b1 Issue #640: prevent crashes when future versions of the server return key clauses unsupported by HeidiSQL 2019-05-06 20:33:07 +02:00
3a4578e67b Issue #640: fix crash in table editor with DESC/ASC in a key 2019-05-06 20:24:00 +02:00
2f77c9ea8c Issue #637: No need to upper-case when calling StartsWith() with ignore case flag. Also, prefer StartsWith() over various ugly calls to UpperCase(Copy()). 2019-05-06 06:32:09 +02:00
54c6d9123f Detect ON UPDATE clause's content with a two-step approach, so it does not eat a potentially existing COMMENT clause after it. Closes #637. Broken in 9fc7150a9fc15d400a836df8b20765a1864a9c80 for #74. 2019-05-05 20:01:46 +02:00
fad93ace54 Issue #496: show UNKNOWN data type in table editor for MSSQL and MySQL, as already for PG. Avoids casting its values to int for the data grid, and at least does not show the data type from the prior column in the table editor. 2019-04-22 13:47:41 +02:00
9fc7150a9f Issue #74: attempt to support all kinds of expressions in column DEFAULT + ON UPDATE clauses 2019-04-21 15:40:18 +02:00
f23e8884a1 Fix TDBConnection.ParseViewStructure so it orders the result from IS.COLUMNS by their ordinal/natural position. Closes #617. 2019-04-19 12:08:23 +02:00
85a8355e1d Add new log category lcScript, for queries from large scripts and import operations. By default disabled, which should speed up importing large files. 2019-04-16 07:19:47 +02:00
975e1528e8 Issue #521: make debug output more readable 2019-04-16 06:38:06 +02:00
f870c81770 Issue #521: increase waiting time after PLink output, from 1s to 2s, for slow connections. 2019-04-16 06:32:27 +02:00
9ea65d4ef2 Issue #521: disable verbosity of plink again, due to weird extra dialogs appearing now 2019-04-15 20:15:48 +02:00
141c348a5d Issue #521: add -ssh and -v arguments again to plink.exe command, as proposed in https://github.com/HeidiSQL/HeidiSQL/issues/521#issuecomment-482897896 2019-04-14 14:05:21 +02:00
f5734fece1 Issue #521: use -batch instead of -ssh parameter for plink, to prevent creating a shell and to reduce interactive prompts 2019-04-13 08:38:35 +02:00
2db3fffa71 Support selecting wrong cased columns in MariaDB 10.4, so the user manager shows up. Closes #599. 2019-04-04 20:35:44 +02:00
1f30684745 Silence EAccessViolation in PQfinish() of 32bit libpq.dll . Closes #37 2019-03-30 09:26:28 +01:00
dacc1d7c99 Issue #577: skip informational error output from new plink version 2019-03-28 20:04:59 +01:00
d6dc4cde2e Support spaces in definer of a view. Closes #571. 2019-03-14 20:06:17 +01:00
d6c35d9474 Implement TPGConnection.SetCharacterSet to get a persistent utf-8 setting. Closes issue #22. 2019-03-07 12:19:59 +01:00
880fdb47ad Catch all kinds of exceptions when connecting to MSSQL did not work, not just EOleException. Seems the thrown exception changed, probably when switching OLEDB driver. Closes #517. 2019-03-07 10:03:05 +01:00
c6971c66bb Call PQfinish() when PostgreSQL connection failed to initialize. Closes #544. 2019-02-19 19:26:42 +01:00
638b5e562a Issue #516: Display MemSQL icon and name for those sessions 2019-02-16 10:16:47 +01:00
8cf93ab910 Issue #516: Silence error when retrieving unavailable (and non-vital) "Row_format" column from SHOW TABLE STATUS on MemSQL server 2019-02-16 10:02:31 +01:00
25394f423f Issue #496: fix potentially undefined result of TAdoDBQuery.IsNull 2019-02-10 13:13:14 +01:00
074f61c318 Silence EOleError when checking field value for NULL: "Multiple-step operation generated errors. Check each status value.". Closes #496 2019-02-10 13:09:16 +01:00
06df04b45e Implement input box for user/password prompt from plink process. Password prompt hides characters, like advised on https://stackoverflow.com/a/21122864/4110077 . Closes #129. 2019-01-02 20:30:47 +01:00
7417cf003f Modify declaration of mysql_options() API method, so its second parameter is guaranteed to be a 32bit integer. Fixes failures when setting MYSQL_PLUGIN_DIR in 64bit mode. Closes #163. 2018-12-28 20:15:30 +01:00
39f06c849e Pressing enter in query editor with opened proposal dropdown with an underlying identifier, containing a quote char to the left, quoted that quote again, resulting in a quote mess. Change that behavior and tell HeidiSQL to force quoting if the left char is a quote. Closes #6. 2018-12-25 12:13:24 +01:00
b41baac3a8 Rephrase default names of "MySQL *" network types to "MariaDB or MySQL *" 2018-12-24 14:41:49 +01:00
993fdec3df Silence potential crashes in TDBConnection.PrefetchCreateCode, when Heidis cached list of tables has a table which does not exist at the time when the proposal shows up. Closes #452. 2018-12-20 11:50:38 +01:00
c757cf0c4b Issue #452: Rename TDBConnection.GetLastError to GetLastErrorMsg, due to a gutt feeling the name conflicts with Windows.GetLastError in some crashes. 2018-12-20 11:47:50 +01:00
f3dc05de7b Code cosmetic: use IfThen() in some places for having less code 2018-12-15 18:39:55 +01:00
76825bcc20 Display server's current date time instead of useless UTC time in status bar 2018-12-13 21:59:21 +01:00
ac63d5f613 When getting CREATE code of all database objects in completion proposal, skip triggers when SHOW CREATE TRIGGER is not yet supported. Closes #111. 2018-12-11 21:01:51 +01:00
86684ebde3 Force a minimum of 1 second waiting time after creating the plink.exe process before trying to access the established tunnel. Could help users which have set it to "0", accidentally or intentionally, and experiencing connection problems with that. Related to #418. 2018-12-05 20:19:57 +01:00
0a5406834c Cast date/time columns to char on MySQL when generating an all-column filter. Closes #392. 2018-11-28 21:18:25 +01:00
ac2f7cf541 Fix various unused default session values when creating a new session 2018-11-26 19:36:56 +01:00
611c311153 Fix sloppy code from damhye in TDBQuery.GetColBinData(), see https://www.heidisql.com/forum.php?t=24843 2018-11-25 13:40:14 +01:00
b0c0921d97 Cancel SQL export when target server barfs with error 1049 (unknown database). Closes #299 2018-11-25 13:31:05 +01:00
a3c2c3e676 Fall back to insecure TLS 1.0 connections with ADO provider "SQLOLEDB" when newer "MSOLEDBSQL" is not available. Closes issue #237 2018-11-03 18:16:26 +01:00
f5e575e6b8 Prefer 127.0.0.1 over localhost for connecting to a SSH tunnel. Probably fixes issue #381. 2018-10-31 08:09:58 +01:00
c749c061a5 Switch to Microsoft OLE DB Driver for SQL Server
SQLOLEDB provider is for deprecated Microsoft OLE DB Provider for SQL
Server, which is no longer supported.

See https://blogs.msdn.microsoft.com/sqlnativeclient/2017/10/06/announcing-the-new-release-of-ole-db-driver-for-sql-server/

Fixes #237
2018-10-31 07:29:22 +01:00
3576f76438 Fix comparison of table names on servers with lower_case_table_names=1 or 2 (both insensitive). Affects SQL export, which is calling PrepareColumnAttributes since recently. Closes #168. 2018-06-26 20:53:56 +02:00
8202e76b92 Distinguish between multiple stored procedures with different argument list, on PostgreSQL. Closes #58. 2018-04-09 22:17:04 +02:00
83d6b02d7c Display tenths of a second through FormatTimeNumber. Used by query running status, table tools dialog and some more. 2018-03-18 21:17:33 +01:00
194f26bfac Quote column in WHERE clause of automated query for finding locked tables in database. Closes #173 2018-03-01 20:15:04 +01:00
52c3fb43a2 Fix detection of PostgreSQL version ignoring the 3rd version segment, and use the same logic as for MySQL again. See issue #137. 2018-02-14 07:44:26 +01:00