17600be9c1
FHostListResults needs its own copy of a SHOW VARIABLES result, to overcome invalid pointer operations when freeing the result within TMySQLConnection.GetServerVariables. Fixes issue #2943 .
2012-08-30 21:43:52 +00:00
225dba02d7
Assume user wants default length/set for columns of an existing table, until he enters some new value. Fixes issue #2942 .
2012-08-28 17:44:55 +00:00
8d73413de8
Fix and enhance handling of multiple statements and multiple results:
...
* TMySQLConnection.Query did not process further results if the first one is a non-result. Instead, it disconnected you as the required mysql_store_result() was never called. Fixed now. Should fix the error described here: http://www.heidisql.com/forum.php?t=11049
* Cache result of SHOW VARIABLES, and introduce a MaxAllowedPacket function, which benefits from that cache
* Do not limit the number of statements in "batch in one go" mode, only limit its size. This is to minimize the number of sent packets for a huge numbers of very small queries.
2012-08-27 22:56:12 +00:00
9d5c5b061f
Detect auto increment column id once after querying and use a simple variable AutoIncrementColumn, not via function ColIsAutoIncrement. Simplifies previous commit.
2012-08-26 09:49:48 +00:00
2ffedb7721
Add "Include auto increment column" checkbox option onto grid export dialog. Fixes issue #2864 .
2012-08-25 13:38:04 +00:00
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
44782e5129
Avoid usage of ExtractFilename for session registry keys, as this cuts strings at characters which are not allowed in filenames, but allowed in registry keys. Fixes issue #2909 .
2012-07-31 07:39:27 +00:00
56e0d8b445
Implement session folders. Fixes issue #1228 .
2012-07-27 06:54:56 +00:00
82668cca67
Issue #1228 : Introduce new columns in session managers list of sessions: "Last connect" and "Counter".
2012-07-19 09:08:42 +00:00
08ec09c3dd
Fix issue #1031 : Have folders for tables, views, routines in database tree.
2012-07-19 07:07:50 +00:00
8af6d3c900
TDBQuery.GetWhereClause uses an empty string on a not yet fetched, inserted row. So a numerical cell which is part of a primary/unique key gets into the WHERE clause without any value. Fix that by using "0" as a default if it's an empty string. Avoid usage of UnformatNumber(), which I removed in r4047. Fixes issue #2867 .
2012-06-12 19:50:48 +00:00
e2f09b0d8d
Make local timezone feature a per session option. See http://www.heidisql.com/forum.php?t=10635
2012-05-25 17:46:57 +00:00
aaf80e7d93
Limit SET time_zone query to 4.1.3+ servers, to fix "Unknown system variable time_zone" error on old servers.
2012-05-20 12:10:41 +00:00
18bcbd8235
Support insertion of SQL function calls in grid cells, via context menu and shortcut Ctrl+F2. Also, reload full row data after INSERT and UPDATE.
2012-05-18 17:01:59 +00:00
de504e4a18
Detect client timezone in TMySQLConnection.DoAfterConnect and send SET time_zone to the server, so that NOW() and friends return UTC-fixed values. See http://www.heidisql.com/forum.php?t=10635 . Breaks grid editing of date/time values, issue #1835 , while timestamp columns use server magic.
2012-05-17 06:18:23 +00:00
5e8bf8306a
Remove unused unit inclusions, detected by CNPack/Uses cleaner
2012-05-01 08:34:12 +00:00
a9260a49d6
Fix black tree background, broken in previous commit.
2012-04-22 12:10:06 +00:00
1b5285bb0e
Introduce TConnectionParameters.SessionColor property to hold the tree background color, and use that to paint the background of relevant nodes only, instead of the whole tree. See http://www.heidisql.com/forum.php?t=10133
2012-04-22 08:40:30 +00:00
af747da0b6
Add server specific icons for TokuDB, InfiniDB and Infobright. Fixes issue #2795 .
2012-04-13 15:43:55 +00:00
4abe696b14
Expect CHARSET + COLLATE clause after RETURN, in regular expression logic of TDBConnection.ParseRoutineStructure(). See http://www.heidisql.com/forum.php?t=10297
2012-03-29 20:23:30 +00:00
c2699b3443
Safe 9 lines of code by introducing new server specific snippets spEmptyTable and spCurrentUserHost.
2012-03-26 18:43:00 +00:00
6703f20711
Move global LoadConnectionParams() to class function TDBConnection.ReadFromRegistry()
2012-03-26 18:34:33 +00:00
a685ff292b
Introduce TSQLSpecifity and TDBConnection.GetSQLSpecifity(), which manage and return server version specific SQL snippets. Fixes issue #2796 .
2012-03-25 21:42:52 +00:00
c459bb0ad6
Pass application name in MS SQL connection string
2012-03-13 20:07:52 +00:00
1c76c2ecc0
Do not pass TCP port to MS SQL if named instance in host name present. Fixes issue #2767 .
2012-03-13 20:06:39 +00:00
9b7a1a88cd
Implement usage of mysql_warning_count(). Ask for running SHOW WARNINGS in a new query tab if there are more than the 5 warnings which already get displayed in the popup dialog. Fixes issue #2768 .
2012-03-10 09:13:31 +00:00
530c27d064
Synchronize logging within a query thread with the main thread, to prevent access violations in SynEdit. Remove CriticalSection approach. Fixes issue #2763 .
2012-03-09 20:55:31 +00:00
3da79f5b2b
DLL errors fixed in previous commit belong to a place after connection has been established. Reporter of issue #2741 says connection does not even work with r4063.
2012-02-26 09:56:27 +00:00
bfb2c57c3a
Silence cosmetic DLL errors. Fixes issue #2741 .
2012-02-26 07:37:11 +00:00
188823dfbd
Again, log messages in query threads without postponing. There is a chance that this does not cause access violations, now that we don't call MainForm.SetupSynEditors in various places. Fixes issue #2716 .
2012-02-15 08:03:11 +00:00
3fe4a1a007
Flag MS SQL connection types as experimental.
2012-02-12 11:51:42 +00:00
08d0a095a7
Do not double-unformat numbers in automatic grid WHERE clause. Fixes issue #2608 .
2012-02-12 09:28:19 +00:00
32e10cc88c
Keep VIEW editor enabled, even if SHOW CREATE VIEW failed. Falling back to INFORMATION_SCHEMA succeeds in cases where the VIEW contains unreferenced columns. Fixes issue #2705 .
2012-02-04 20:29:46 +00:00
ba14143238
Export whole CREATE VIEW code, not only the VIEW body. Fixes issue #2625 .
2012-02-04 06:52:21 +00:00
15cf7cd45b
Fix non-nil values for mysql_ssl_set(), broken in r4031.
2012-01-24 22:19:02 +00:00
a86650d10b
Introduce a checkbox for explicit activation of SSL. Any combination is passed to the server now, while SHOW STATUS LIKE 'ssl_cipher' is used to find out if the connection is indeed SSL secured. Pops up a warning when SSL settings were ignored by the server. Fixes issue #2672 .
2012-01-22 10:17:24 +00:00
0d6d41d14f
Do not use TOP 1 in DELETE queries on MS SQL servers. Fixes issue #2690 .
2012-01-18 20:23:33 +00:00
9710a8363e
Use different TOP syntax for UPDATE + SELECT queries in MS SQL. Fixes issue #2682 .
2012-01-15 10:10:12 +00:00
fb5d62361b
Avoid accessing non existing items in ADO error pool. Fixes issue #2684 .
2012-01-12 20:27:42 +00:00
bed1703fcd
Add version of libmysql.dll to error message when it's outdated.
2012-01-12 20:20:30 +00:00
0345c9ea3e
Fix repeated glitch in previous build. Sigh...
2012-01-10 19:19:54 +00:00
71d94e9e90
Issue #2550 : Do not report unknown uptime if server was started before client machine. Broken in r4020.
2012-01-10 17:39:15 +00:00
2d69818304
Use master.dbo.sysprocesses finally to get it running on all MS SQL versions
2012-01-10 17:21:44 +00:00
e65314ed78
Show functions and triggers in MS SQL. See http://www.heidisql.com/forum.php?t=9671
2012-01-07 16:20:45 +00:00
ff6983820c
Issue #2550 : Use sys.sysprocesses instead of dbo.sysprocesses so this does not fail on old servers. Querying sys.sysprocesses may return an empty result for spid 1, so there is a default of -1 for FServerStarted now, which then reports "(unknown)" in the status bar.
2012-01-07 13:17:41 +00:00
047cb26f08
Remove LoginPrompt() function, create and use TfrmLogin instance like a normal form. That way, mysql_authentication_dialog_ask() can hide the labels and the irrelevant edit box.
2011-12-31 08:29:42 +00:00
7fb2db5403
Fix 3 compiler warnings
2011-12-30 13:11:47 +00:00
ea3cd84993
Quote password in plink command line, so it can contain spaces. Fixes issue #2667 .
2011-12-30 13:06:10 +00:00
7541416f35
Extend hints on how to install MDAC on Wine. See issue #2660 , comment #5 .
2011-12-28 17:47:00 +00:00
53c2d5817b
MS SQL 2000 compatibility for SELECT TOP... Fixes issue #2662
2011-12-27 08:10:49 +00:00