400 Commits

Author SHA1 Message Date
f2da91be65 Suppress errors in LoadLibrary(libmariadb.dll) on Windows XP. Instead, try loading the XP-compatible libmysql.dll v5.6.6. Closes #79. 2018-01-09 21:03:50 +01:00
f5d9603549 Support newer MariaDB syntax for column default:
* "DEFAULT current_timestamp()" without precision
* "DEFAULT 0" without quotes around numbers
Closes #68
2018-01-08 11:17:35 +01:00
d3856282d1 Update libmysql.dll to libmariadb.dll from the current 10.2.12 GA release. Leave support for libmysql, for users which don't yet have the new file in their Heidi directory. Should fix non working SSL connections, like described here: https://www.heidisql.com/forum.php?t=19494 2018-01-06 20:34:49 +01:00
9b167c2015 Remove unused variable 2017-12-30 15:01:18 +01:00
d057f27a4f Cast result from LOAD_FILE() command as utf8 string, to fix encoding errors in view editor. Closes #61. 2017-12-30 14:01:42 +01:00
dac303d8f6 Introduce argument indexes in some translation strings, to fix crashes with Japanese and probably other languages, when grammar changes the order of arguments. Closes #55. 2017-12-22 10:28:15 +01:00
19a1c3fbb4 Refactor exclusion of virtual columns in various places:
* introduce TDBQuery.ColIsVirtal() returning a boolean for a column index, and use that instead of examining a columns virtuality everywhere
* exclude virtual column when exporting SQL code in the grid export dialog - see #53
* sql export dialog must not activate edit mode on a result, as this introduces endless loops
* instead, move some code out of PrepareEditing into PrepareColumnAttributes, which we can now call separately without activating edit mode
2017-12-22 10:07:17 +01:00
c2594e40c0 Find out whether the previously selected database has some locked tables, and if so, don't select it at startup time. Closes #49 2017-12-21 15:25:03 +01:00
4101350163 Support quote chars other than the relevant one within identifiers. For example "mycolumn" or "mycolumn" ... or even worse: "mycolumn". Closes #44. 2017-12-14 20:37:27 +01:00
d029a83e8b Update url to issue tracker and copyright year 2017-12-02 14:58:54 +01:00
88bb7eb376 Simplify regular expression for extracting column details in ParseTableStructure(), so it does not barf on huge length/set. Fixes issue #2. 2017-11-06 22:04:34 +01:00
e17fc0291b Save session tree color when creating a copy of a session. See https://www.heidisql.com/forum.php?t=23796 2017-05-11 18:00:47 +00:00
38cfdd0595 Fix detection of column types with DEFAULT CURRENT_TIMESTAMP(123). See https://www.heidisql.com/forum.php?t=17585 2017-04-01 06:52:04 +00:00
209f398dec Silence dumb exceptions from mysql_ping() call. See https://www.heidisql.com/forum.php?t=23483 2017-03-07 20:19:36 +00:00
b6e1f8012e Attempt to add an error string which Windows provides after a failed call to LoadLibrary. See http://www.heidisql.com/forum.php?t=22514 2017-01-23 19:35:14 +00:00
53b4ab6911 Include ADO connection string in status bar connection details, shorten the lines reasonably and show the full lines in a message box when clicking on it. See http://www.heidisql.com/forum.php?t=23049 2017-01-14 11:01:32 +00:00
5312a37203 Support SQL security setting in view editor via drop down menu. See http://www.heidisql.com/forum.php?t=21740 2016-12-14 19:10:08 +00:00
3ffcafac05 Revert r5136, which removes support for single quotes in database names again, to fix a new bug when finding the right PG database name in a query like SET search_path TO E'information_schema', E'public'. See http://www.heidisql.com/forum.php?t=22799 2016-11-29 14:15:42 +00:00
50d74d9214 Fix sloppy regular expression in TDBConnection.DetectUSEQuery which removes too much of trailing quotes in a database name. See http://www.heidisql.com/forum.php?t=22743 2016-11-24 18:22:23 +00:00
34e8068189 PostgreSQL: query timeout is set in milliseconds, not seconds. See http://www.heidisql.com/forum.php?t=22645 2016-11-21 18:54:07 +00:00
ce444cbfe4 Try to load libpq.dll with explicit file path if the path-less did not succeed. See http://www.heidisql.com/forum.php?t=22514 2016-11-20 21:20:41 +00:00
7bd29f0bac Cast unknown data type columns as text when generating a multi column filter from user input. See http://www.heidisql.com/forum.php?t=22562 2016-11-01 16:52:30 +00:00
aa373aaaba Use the right SQL commands for killing a process on PostgreSQL. See http://www.heidisql.com/forum.php?t=21760 2016-10-31 17:53:25 +00:00
1e03f4b0b5 Remove quirky logic from TMySQLQuery.Execute when distinguishing between text and binary data types. See http://www.heidisql.com/forum.php?t=22441 2016-10-24 19:34:07 +00:00
55342752b6 Move plink.exe path to lpCommandLine parameter instead of passing it as lpApplicationName. This way, a folderless plink.exe call should use the first available one from the path environment. See http://www.heidisql.com/forum.php?t=21873 2016-08-11 15:17:08 +00:00
c23015613a Use exact text data types instead of their whole category for detecting special binary columns. Fixes unquoted JSON content in SQL exports. See http://www.heidisql.com/forum.php?t=20655 2016-07-19 17:38:34 +00:00
a3853b5d6c Propagate changed list of object names in selected database through the new event OnObjectnamesChanged to the owner object, not through an internal reference to a string list. 2016-06-18 07:24:41 +00:00
75fecfd3dd MySQL/MariaDB: Implement support for expired passwords. Show a change-password dialog after the very first query of a connection when it returns "Error 1820: You must SET PASSWORD before executing this statement". See http://www.heidisql.com/forum.php?t=17921 2016-06-13 17:59:05 +00:00
67a30de7bb Display network type in tooltip over server status panel. See http://www.heidisql.com/forum.php?t=21556 2016-06-09 20:16:56 +00:00
45d74f2a0e Trim database names when passed as semicolon separated list. See http://www.heidisql.com/forum.php?t=21505 2016-06-07 18:10:38 +00:00
3641a180e4 Rewind result set for column comments before iterating over it, as it's an inner loop. See http://www.heidisql.com/forum.php?t=21504 2016-06-07 18:03:34 +00:00
9754d5d3b2 Fix EArgumentOutOfRangeException in TDBConnection.PrefetchResults when SQL batch could not be separated correctly. Should be a rare case, but happened, see http://www.heidisql.com/forum.php?t=21380 2016-05-24 16:14:22 +00:00
23b2d8badd Fix wrong FLOAT data type mapping between DB.TFieldType and TDBDatatypeIndex, in TAdoDBQuery.Execute. See http://www.heidisql.com/forum.php?t=21306 2016-05-23 18:55:26 +00:00
909cd70388 Missing file for r5073: BIT column syntax. See http://www.heidisql.com/forum.php?t=20333 2016-05-06 16:01:16 +00:00
558a0f9e3f Fix "Database(s)" string split by space characters. Allow semicolon only. See http://www.heidisql.com/forum.php?t=21080 2016-05-06 15:56:58 +00:00
6fae579775 Overcome 4000 character limit in IS.VIEW_DEFINITION. See http://www.heidisql.com/forum.php?t=21097 2016-04-17 13:31:50 +00:00
2410e3c8af Display the version of libpq.dll in the status bar's balloon hint with server details, using PQlibVersion(). 2016-04-10 10:27:38 +00:00
91cefe7c5e Update all PostgreSQL libraries, add missing libiconv-2.dll, unify filename of 32bit version of libintl.dll (=> libintl-8.dll), and finally revert the previous 3 commits, which hopefully are not required with these updates. See http://www.heidisql.com/forum.php?t=21039 2016-04-08 16:26:00 +00:00
4645c38bc2 Load libpq.dll after just checking if it exists. Do not check what LoadLibrary returns. This is quite risky, but there seem to be cases where LoadLibrary returns 0 although libpq.dll was loaded. See http://www.heidisql.com/forum.php?t=21039 2016-04-06 05:03:58 +00:00
cd35370f1d Attempt to add a helpful error message to the error dialog when libpq.dll was not loaded. http://www.heidisql.com/forum.php?t=21039 2016-04-05 05:04:02 +00:00
bdddc726b4 Load libpq.dll with full path, so the LoadLibrary does not accidentally take a different (probably wrong) one from somewhere else than the current directory. See http://www.heidisql.com/forum.php?t=21039 2016-04-04 18:18:59 +00:00
bd63325a9f MSSQL: Work around multiple results from a single query, in case of a stored procedure for example. See http://www.heidisql.com/forum.php?t=21036 2016-04-04 17:25:12 +00:00
347ed4880e Add "SQL DELETEs/INSERTs" to grid export formats. See http://www.heidisql.com/forum.php?t=20929 2016-04-03 09:45:04 +00:00
bc70226565 MSSQL table names: Revert previous change in TAdoDBQuery.TableName and assign separate SQL strings earlier, in TAdoDBConnection.GetLastResults. Fixes wrong table name in "Send queries in one go" mode. See http://www.heidisql.com/forum.php?t=20979 2016-03-25 19:11:03 +00:00
693aeb3b39 Fix bug in TAdoDBQuery.TableName when multiple queries were executed. See http://www.heidisql.com/forum.php?t=20979 2016-03-25 10:08:42 +00:00
d0613c00f4 Support searching in procedures and functions on MSSQL and PostgreSQL mode too. 2016-03-13 10:22:27 +00:00
df18c98af8 Make keep-alive-interval customizable in "Advanced" tab on session manager. See http://www.heidisql.com/forum.php?t=20829 2016-03-05 18:36:44 +00:00
0121d55694 Support inline valued functions on MSSQL. See http://www.heidisql.com/forum.php?t=20186 2016-01-27 18:31:19 +00:00
8c5d9e0033 Fix unquoted and uncleaned numeric values in data grid updates and inserts. See http://www.heidisql.com/forum.php?t=20434 2016-01-20 19:36:25 +00:00
34f524686d Fix detection of virtual columns without "GENERATED ALWAYS" clause. See http://www.heidisql.com/forum.php?t=20248 2016-01-04 18:35:20 +00:00