Commit Graph

113 Commits

Author SHA1 Message Date
Ansgar Becker
08ec09c3dd Fix issue #1031: Have folders for tables, views, routines in database tree. 2012-07-19 07:07:50 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
Ansgar Becker
a9260a49d6 Fix black tree background, broken in previous commit. 2012-04-22 12:10:06 +00:00
Ansgar Becker
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
Ansgar Becker
af747da0b6 Add server specific icons for TokuDB, InfiniDB and Infobright. Fixes issue #2795. 2012-04-13 15:43:55 +00:00
Ansgar Becker
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
Ansgar Becker
c2699b3443 Safe 9 lines of code by introducing new server specific snippets spEmptyTable and spCurrentUserHost. 2012-03-26 18:43:00 +00:00
Ansgar Becker
6703f20711 Move global LoadConnectionParams() to class function TDBConnection.ReadFromRegistry() 2012-03-26 18:34:33 +00:00
Ansgar Becker
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
Ansgar Becker
c459bb0ad6 Pass application name in MS SQL connection string 2012-03-13 20:07:52 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
bfb2c57c3a Silence cosmetic DLL errors. Fixes issue #2741. 2012-02-26 07:37:11 +00:00
Ansgar Becker
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
Ansgar Becker
3fe4a1a007 Flag MS SQL connection types as experimental. 2012-02-12 11:51:42 +00:00
Ansgar Becker
08d0a095a7 Do not double-unformat numbers in automatic grid WHERE clause. Fixes issue #2608. 2012-02-12 09:28:19 +00:00
Ansgar Becker
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
Ansgar Becker
ba14143238 Export whole CREATE VIEW code, not only the VIEW body. Fixes issue #2625. 2012-02-04 06:52:21 +00:00
Ansgar Becker
15cf7cd45b Fix non-nil values for mysql_ssl_set(), broken in r4031. 2012-01-24 22:19:02 +00:00
Ansgar Becker
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
Ansgar Becker
0d6d41d14f Do not use TOP 1 in DELETE queries on MS SQL servers. Fixes issue #2690. 2012-01-18 20:23:33 +00:00
Ansgar Becker
9710a8363e Use different TOP syntax for UPDATE + SELECT queries in MS SQL. Fixes issue #2682. 2012-01-15 10:10:12 +00:00
Ansgar Becker
fb5d62361b Avoid accessing non existing items in ADO error pool. Fixes issue #2684. 2012-01-12 20:27:42 +00:00
Ansgar Becker
bed1703fcd Add version of libmysql.dll to error message when it's outdated. 2012-01-12 20:20:30 +00:00
Ansgar Becker
0345c9ea3e Fix repeated glitch in previous build. Sigh... 2012-01-10 19:19:54 +00:00
Ansgar Becker
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
Ansgar Becker
2d69818304 Use master.dbo.sysprocesses finally to get it running on all MS SQL versions 2012-01-10 17:21:44 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
7fb2db5403 Fix 3 compiler warnings 2011-12-30 13:11:47 +00:00
Ansgar Becker
ea3cd84993 Quote password in plink command line, so it can contain spaces. Fixes issue #2667. 2011-12-30 13:06:10 +00:00
Ansgar Becker
7541416f35 Extend hints on how to install MDAC on Wine. See issue #2660, comment #5. 2011-12-28 17:47:00 +00:00
Ansgar Becker
53c2d5817b MS SQL 2000 compatibility for SELECT TOP... Fixes issue #2662 2011-12-27 08:10:49 +00:00
Ansgar Becker
604c9e0dc3 Use downward compatible queries for fetching table names on MS SQL 2000. Fixes issue #2661. 2011-12-26 23:07:39 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
12e7c93cba Remove unused variables 2011-12-24 08:14:39 +00:00
Ansgar Becker
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
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
ef782046cc Add support for SQL Server 2008 when fetching database names. Fixes issue #2550. 2011-12-17 13:59:51 +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