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
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
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
ef782046cc
Add support for SQL Server 2008 when fetching database names. Fixes issue #2550 .
2011-12-17 13:59:51 +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
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
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
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
f9e896fede
Unformat local formatted floats in WHERE clause for grid updates. Probably fixes issue #2558 .
2011-11-05 07:26:32 +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
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
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
65de4c482e
TMySQLConnection.GetThreadId requires the connection to be active. Fixes issue #2561 .
2011-09-20 17:23:36 +00:00
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
793ab83a20
Process escaped single quote in TDBConnection.UnescapeString. Mentioned in issue #2546 .
2011-09-05 19:55:51 +00:00
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
94c1ecc81a
Remove redundant backticks in table editors CREATE and ALTER code. See http://www.heidisql.com/forum.php?t=9056
2011-08-24 05:50:51 +00:00
f4b19d1351
Remove TMainForm.AllDatabasesDetails, and implement a collation property in TDBObjectList, queried from information_schema.schemata. Removes a moreorless useless queries for objects in information_schema, which probably causes crashes when badly timed, like described in issue #2537 .
2011-08-21 05:45:09 +00:00
3170702b5b
Unify usage of log prefix in db connection.
2011-08-20 05:31:02 +00:00
eaadfb3f60
Implement TDBConnection.GetServerVariables, and use that in various places. Also, indicate Percona server version using version_comment variable. See http://www.heidisql.com/forum.php?t=8035 .
2011-08-19 06:27:00 +00:00
0f881d2a13
Cache result of thread id. On MS SQL this is a real query which spams the log history. And mysql_thread_id() crashes when connection was killed.
2011-08-17 06:17:47 +00:00
a170149801
Revert previous commit, which does not fix issue #2358
2011-08-16 06:38:18 +00:00
22b3f8a980
Try to fix crashes in SynEdit repaints after reconnects, by catching threaded log items and postpone them for later, in AfterQueryExecution which is synchronized with the main thread. I could swear yesterday I got the same exception here but today it's working like a charm. Probably fixes issue #2358 .
2011-08-16 06:16:46 +00:00
807fd94fa7
ParseTableStructure does an implicit reconnect via GetCollationTable, lately, after a first column is already created. Do a manual ping at the very start so columns are correctly shown, e.g. in data tab. Fixes issue #2484 .
2011-07-23 18:57:33 +00:00
3824e552fe
Rewrite import file dialog: Use a grid for column values, distinct between binary and text files
2011-07-11 06:13:50 +00:00
b169e57fe9
Paint green size bar in database trees
2011-07-03 21:49:26 +00:00
133b2a265c
Refactor code for Host subtabs: Remove TVTreeData structure, use TDBQueryList instead. Use same code for most grid events.
2011-07-03 08:44:20 +00:00
cbd847477e
Fetch uptime on MS SQL backward compatible. See http://www.heidisql.com/forum.php?t=8147
2011-06-18 05:30:35 +00:00