Ansgar Becker
5b60d7047e
Add basic support for pluggable authentication:
...
* Implement and export callback function "mysql_authentication_dialog_ask"
* Update libmysql.dll to the one from MariaDB 5.2.10
* Copy dialog.dll from MariaDB into plugins subfolder
* Modify installer so it creates the plugins folder and its dll files
* Fixes issue #2658
2011-12-23 17:11:36 +00:00
Ansgar Becker
fde18b9230
Fix rare errors when passing a broken list of databases via session manager. See http://www.heidisql.com/forum.php?t=9550
2011-12-20 19:28:04 +00:00
Ansgar Becker
16bfc42f88
Do not access char at non existent position in a string. Introduces CharAtPos function. Fixes issue #2649 .
2011-12-20 18:01:16 +00:00
Ansgar Becker
3ecf79ee08
Fix broken sorting logic for positive small numbers, broken in r3987.
2011-12-18 09:51:49 +00:00
Ansgar Becker
10c17f502d
Do not store and restore old value of FOREIGN_KEY_CHECKS variable, just set it to 0 when beginning to export, and to 1 again at the end. Should prevent from running into "'foreign_key_checks' can't be set to the value of 'NULL'" error when disconnects happen within export process. Fixes issue #2500 .
2011-12-17 14:33:44 +00:00
Ansgar Becker
e8759d88fc
Use numeric sorting approach instead of string comparison for negative numbers. Fixes issue #2519 .
2011-12-17 14:16:04 +00:00
Ansgar Becker
ef782046cc
Add support for SQL Server 2008 when fetching database names. Fixes issue #2550 .
2011-12-17 13:59:51 +00:00
Ansgar Becker
b5e28f43db
Refreshing datagrid result while connection is cut triggers SelectedTableColumns to reset implicitly in ConnectionReady > DBTreeFocusChanged > ParseSelectedTableStructure. Add an explicit Connection.Ping(true) before firing any query in DatagridBeforePaint, and merge code from ParseSelectedTableStructure into DBTreeFocusChanges. Fixes issue #2644 .
2011-12-14 21:11:51 +00:00
Ansgar Becker
c980a17b00
Fix non logged errors, caused by late non executed code in a try block. Fixes issue #2646 .
2011-12-13 20:50:48 +00:00
Ansgar Becker
1a15e89023
Use -- for line comments, not #, to support MS SQL also in export files.
2011-12-11 21:11:31 +00:00
Ansgar Becker
268d868337
Fix wrong offset when stripping trailing comma for MS SQL table structure export. See http://www.heidisql.com/forum.php?t=9449
2011-12-11 16:51:06 +00:00
Ansgar Becker
19ad738f7b
Ensure there are no open result sets when destroying open connections. Fixes an access violation when closing Heidi, caused by accessing Connection.mysql_somefunction() in TMySQLQuery.Destroy. See http://www.heidisql.com/forum.php?t=9508
2011-12-11 09:21:16 +00:00
Ansgar Becker
6bcd6db60d
Encapsulate mysql_* functions as class methods of TDBConnection, and give each instance of TDBConnection its own libmysql handle. This way, we can release the lib handle after each disconnect. Also, this opens up some new possibilities:
...
* use different libmysql.dll versions per connection
* overload mysql_* functions
2011-12-09 21:11:37 +00:00
Ansgar Becker
8ed065ea97
Do not modify SQL_MODE when exporting, just do that temporarily before creating triggers. Avoids running into errors when e.g. ANSI_QUOTES is turned on. Fixes issue #2619 .
2011-12-04 11:11:48 +00:00
Ansgar Becker
53122fe2b1
Place "Preferences" item in system menu of session manager, so users are able to configure stuff without the need to connect first.
2011-11-27 14:45:51 +00:00
Ansgar Becker
e2bcf0d723
Fix unresponsive updownPort + editPort when modifying its value. Broken in r3972.
2011-11-20 06:40:47 +00:00
Ansgar Becker
23fd559c38
Ignore different column in ListSessions.FocusChanged event, so modifications do not get discarded silently when user clicks the "wrong" area.
2011-11-20 06:08:51 +00:00
Ansgar Becker
f6588fb1fc
Add support for integrated Windows authentication on SQL Server. See http://www.heidisql.com/forum.php?t=8856
2011-11-19 08:43:10 +00:00
Ansgar Becker
0b5a093c69
Adjust regular expression in ParseViewStructure so it gracefully matches broken code from SHOW CREATE VIEW. Fixes issue #2563 .
2011-11-18 15:42:23 +00:00
Ansgar Becker
c63335ef3e
Remember column widths in data grid before clearing header. Fixes issue #2511 .
2011-11-17 18:49:32 +00:00
Ansgar Becker
4b5847c641
Store selected database object and its properties in a copied TDBObject, instead of referencing an item from TDBConnection.FDatabases[x]. Not sure if that's a good idea as there may be logic somewhere which now updates the temporary copy, not the reference. But at least this fixes issue #2579 .
2011-11-16 19:20:07 +00:00
Ansgar Becker
0ea3a2cdbb
Try again a fix for SynEdit exceptions, similar to what I've already tried in r3922. The approach was right, only there was Mainform.SetupSyneditors accessing all TSynMemos in a thread when reconnecting.
...
* fixes issue #2605
* should also fix issue #2545
* should also fix issue #2358 (again)
* reverts r3924 and r3925, SynEdit modifications which should not be required any longer now that logging is postponed for the mainthread
2011-11-14 23:14:41 +00:00
Ansgar Becker
9dbb5d195c
Add new quick filter menu item "Column IN (...)". Fixes issue #2606
2011-11-14 20:47:09 +00:00
Ansgar Becker
d07cfcb7c6
Provide option "tabs to spaces" in preferences dialog. For space reasons, move highlighter options to new tab "Highlighter". Also, unify padding on tab sheets, and move "Ask for saving files" option to "SQL" tab.
2011-11-10 23:27:02 +00:00
Ansgar Becker
cb4775c328
Fix memory leak
2011-11-10 22:18:42 +00:00
Ansgar Becker
53444c700a
Add "truncate table" feature to text import dialog. See http://www.heidisql.com/forum.php?t=9367
2011-11-10 22:15:42 +00:00
Ansgar Becker
a69041d17d
Add support for Windows 7 task button progress. Unify all callers of ProgressBarStatus in a set of 5 functions in main unit instead of helpers, as this is where the progress bar is placed and also we need the handle of the main window.
2011-11-08 22:27:52 +00:00
Ansgar Becker
f9e896fede
Unformat local formatted floats in WHERE clause for grid updates. Probably fixes issue #2558 .
2011-11-05 07:26:32 +00:00
Ansgar Becker
968efc99f3
Export VIEWs with alternative version of SELECT code. Follow up to r3941, see issue #2546 .
2011-11-05 00:10:47 +00:00
Ansgar Becker
242b128885
Populate database pulldown with dbs from current connection in export window. Fixes issue #2572 .
2011-11-05 00:07:23 +00:00
Ansgar Becker
0e45ef0b12
Make regex for detection of VIEW name more stable against international characters. Fixes issue #2578 .
2011-11-04 23:08:21 +00:00
Ansgar Becker
07b831c4e9
Confirm overwriting grid export output file. Fixes issue #2596 .
2011-11-04 18:45:05 +00:00
Ansgar Becker
b93106a6fe
Update VirtualTree component to r320
2011-11-01 09:32:34 +00:00
Ansgar Becker
26b6e06aa9
Fix non-used database in reconnect, caused by too early DoAfterConnect which triggers OnConnected event, which again triggers DBTreeFocusChanged which triggers grid updates. Fixes issue #2573
2011-10-15 08:16:35 +00:00
Ansgar Becker
76ad894e52
Merge main menu items "Import" and "Export" into "Tools" menu.
2011-10-15 06:31:16 +00:00
Ansgar Becker
c2412eed21
Take hidden primary key columns into account when tbtnDataColumns gets its ImageIndex.
2011-10-15 06:27:47 +00:00
Ansgar Becker
6a87bfed9b
Place some reasonable messages on status bar while deleting (many) grid rows. Fixes issue #2576 .
2011-10-15 06:09:57 +00:00
Ansgar Becker
01f3d30362
Add support for routine parameters in completion proposal of stored routine editor. Fixes issue #2555 .
2011-10-08 17:10:36 +00:00
Ansgar Becker
bdc7c0c245
Sort font names alphabetically in SQL font selector. Fixes issue #2569 .
2011-10-08 16:45:50 +00:00
Ansgar Becker
d7dd1886dc
Include sample editor on preferences dialog in SetupSynEditors, so settings get applied when preferences dialog opens. Fixes issue #2568
2011-10-08 16:41:06 +00:00
Ansgar Becker
deb75f5c6a
Revert r3938, and add backticks around identifiers again, so ParseTableStructure can detect column for "copy columns" feature. Fixes issue #2540 .
2011-10-01 06:58:33 +00:00
Ansgar Becker
85457c45b4
Delete node so treeIndexes.Repaint does not expect old children in moved up node. Todo: Bind FKeys to tree nodes if that's possible with deleted keys. Fixes issue #2557 .
2011-10-01 06:28:16 +00:00
Ansgar Becker
1c55121a11
Deactivate toAutoScrollOnExpand in object selector, so 1st level nodes do not get out of sight when un/checking one of them.
2011-09-20 21:33:22 +00:00
Ansgar Becker
65de4c482e
TMySQLConnection.GetThreadId requires the connection to be active. Fixes issue #2561 .
2011-09-20 17:23:36 +00:00
Ansgar Becker
4e0d7fdcdb
Do not replace two single quotes which are not used to present one escaped single quote. Fixes issue #2560 .
2011-09-19 18:16:05 +00:00
Ansgar Becker
b733fb8dc6
Primary key columns can be hidden in data grid. Pressing home key has to use first visible column instead of column 0. Fixes issue #2559 .
2011-09-18 09:44:05 +00:00
Ansgar Becker
def0cbd45b
Fix broken link to plink.exe, prefer a link to the download page over the .exe, as that link is obviously randomly mirrored, while there are disappearing mirrors over time.
2011-09-14 20:49:59 +00:00
Ansgar Becker
793ab83a20
Process escaped single quote in TDBConnection.UnescapeString. Mentioned in issue #2546 .
2011-09-05 19:55:51 +00:00
Ansgar Becker
788e279fb8
Attempt to preserver original VIEW code, by selecting text from the server's .frm file. Fixes issue #2546 .
2011-09-04 13:17:32 +00:00
Ansgar Becker
4ccb6391df
Issue #1289 : Add some basic code to the "analyze" button, which detects missing tables in target database.
2011-08-26 06:57:31 +00:00