2560 Commits

Author SHA1 Message Date
d44e55451f Creating an ADO handle throws exception if MDAC is missing, especially on Wine. Create that handle in TAdoDBConnection.SetActive, not in TAdoDBConnection.Create, and turn the exception into an EDatabaseError, so the caller gets a handled error. Additionally, display a possible solution in that error popup, which I found on http://forum.winehq.org/viewtopic.php?p=30653 . Fixes issue #2660. 2011-12-26 22:40:32 +00:00
84e4ca9a15 Add some taskdialog style to login form. 2011-12-25 23:06:13 +00:00
0d7cee7e51 Remove unused unit includes 2011-12-24 12:21:30 +00:00
2dec72f6d8 Try to prevent event cycles to some DBtree code. Fixes issue #2645. 2011-12-24 12:13:15 +00:00
12e7c93cba Remove unused variables 2011-12-24 08:14:39 +00:00
1a593a24b4 Revert r3979, move imported mysql_* functions from TDBConnection to a global var scope. Fixes issue #2647. Also, move MySQL related structures out of dbconnection.pas into mysql_structures.pas and const.inc. 2011-12-24 08:10:41 +00:00
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
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
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
3ecf79ee08 Fix broken sorting logic for positive small numbers, broken in r3987. 2011-12-18 09:51:49 +00:00
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
e8759d88fc Use numeric sorting approach instead of string comparison for negative numbers. Fixes issue #2519. 2011-12-17 14:16:04 +00:00
ef782046cc Add support for SQL Server 2008 when fetching database names. Fixes issue #2550. 2011-12-17 13:59:51 +00:00
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
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
1a15e89023 Use -- for line comments, not #, to support MS SQL also in export files. 2011-12-11 21:11:31 +00:00
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
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
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
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
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
e2bcf0d723 Fix unresponsive updownPort + editPort when modifying its value. Broken in r3972. 2011-11-20 06:40:47 +00:00
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
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
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
c63335ef3e Remember column widths in data grid before clearing header. Fixes issue #2511. 2011-11-17 18:49:32 +00:00
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
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
9dbb5d195c Add new quick filter menu item "Column IN (...)". Fixes issue #2606 2011-11-14 20:47:09 +00:00
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
cb4775c328 Fix memory leak 2011-11-10 22:18:42 +00:00
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
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
f9e896fede Unformat local formatted floats in WHERE clause for grid updates. Probably fixes issue #2558. 2011-11-05 07:26:32 +00:00
968efc99f3 Export VIEWs with alternative version of SELECT code. Follow up to r3941, see issue #2546. 2011-11-05 00:10:47 +00:00
242b128885 Populate database pulldown with dbs from current connection in export window. Fixes issue #2572. 2011-11-05 00:07:23 +00:00
0e45ef0b12 Make regex for detection of VIEW name more stable against international characters. Fixes issue #2578. 2011-11-04 23:08:21 +00:00
07b831c4e9 Confirm overwriting grid export output file. Fixes issue #2596. 2011-11-04 18:45:05 +00:00
b93106a6fe Update VirtualTree component to r320 2011-11-01 09:32:34 +00:00
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
76ad894e52 Merge main menu items "Import" and "Export" into "Tools" menu. 2011-10-15 06:31:16 +00:00
c2412eed21 Take hidden primary key columns into account when tbtnDataColumns gets its ImageIndex. 2011-10-15 06:27:47 +00:00
6a87bfed9b Place some reasonable messages on status bar while deleting (many) grid rows. Fixes issue #2576. 2011-10-15 06:09:57 +00:00
01f3d30362 Add support for routine parameters in completion proposal of stored routine editor. Fixes issue #2555. 2011-10-08 17:10:36 +00:00
bdc7c0c245 Sort font names alphabetically in SQL font selector. Fixes issue #2569. 2011-10-08 16:45:50 +00:00
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
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
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
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
65de4c482e TMySQLConnection.GetThreadId requires the connection to be active. Fixes issue #2561. 2011-09-20 17:23:36 +00:00