2592 Commits

Author SHA1 Message Date
8fbd4df5cf Show up new session after "Save as" action. Fixes issue #2686. 2012-01-18 21:08:15 +00:00
990535228f Autofix TYPE|ENGINE clause when exporting to server. Fixes issue #2688. 2012-01-18 20:56:27 +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
6325d42c4b Fix enabled controls which should be disabled when no SSL option selected. 2012-01-07 09:13:13 +00:00
84d27865e2 Fix mixed up GRANT privilege in user manager, caused by errors and high complexity in regular expression. See issue #2671. Revert modification in SynRegExpr.pas again, now that we have only about 10 parentheses left. 2012-01-06 01:03:12 +00:00
aedbb997ab Support GRANT .. REQUIRE syntax in user manager with a new "SSL options" tab. Fixes issue #2671. 2012-01-05 20:44:49 +00:00
88115dcb26 Code cosmetic: Remove unused FColumns list, and set FConnection once instead of accessing outside instance. 2012-01-03 23:58:44 +00:00
40cdacc1a6 Enable OK button when user types custom object name. Fixes issue #2669. 2012-01-03 23:56:28 +00:00
7ccf8fde9f Fix empty tabSettings when creating very first session. Do less what flickers in ValidateControls, move pagecontrol related stuff in ListSessions.FocusChanged. Also, call FocusChanged event explicitly in SelectNode() when focus did not effectively change. 2012-01-02 23:57:17 +00:00
e87e17ff4a Fix unfocused active control after modifications. Introduces a new bug unfortunately, when creating the very first session. 2012-01-02 08:01:02 +00:00
0eaccc3938 Make session list and details pagecontrol custom resizable via splitter. Also, do not auto-adjust column width in session list, which has funny effects in some cases. 2012-01-02 07:53:24 +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
a83ca1c544 Follow up to r4002 and issue #2656: Set focus to textbox only if it's already shown, to avoid "Cannot focus a hidden or disabled control". 2011-12-30 13:02:54 +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
05fba21700 Fall back from number to string comparison in CompareAnyNode, so equal numbers with word characters in them are sorted alphabetically. Fixes issue #2659. 2011-12-28 09:02:04 +00:00
53c2d5817b MS SQL 2000 compatibility for SELECT TOP... Fixes issue #2662 2011-12-27 08:10:49 +00:00
e6fbe6ec79 Add context menu item in data grid for inserting a column's default value. Fixes issue #2654. 2011-12-26 23:55:17 +00:00
b1a58e1ce2 In TMainform.SetupSynEditors, check if loop editor variable really exists - which is not the case for at least one user. Fixes issue #2651. 2011-12-26 23:30:56 +00:00
d1c25d0182 Focus textbox when user clicks "Custom" in default-value selector. Fixes issue #2656. 2011-12-26 23:21:38 +00:00
5c32fe044b Allow "DELIMITER xyz" not followed by some whitespace. Fixes issue #2655. 2011-12-26 23:15:44 +00:00
604c9e0dc3 Use downward compatible queries for fetching table names on MS SQL 2000. Fixes issue #2661. 2011-12-26 23:07:39 +00:00
d36b1e2b0a Follow up to previous commit: Catch more exceptions when creating the ADO handle. Most probably there are more I know of. 2011-12-26 22:45:57 +00:00
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