77 Commits

Author SHA1 Message Date
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
98c872909c Support virtual columns in MariaDB 5.2. Fixes issue #2451. 2011-06-10 23:36:38 +00:00
ed577e4482 Detect MariaDB, and use MariaDB icon in session manager, status bar and database tree. 2011-06-10 22:26:13 +00:00
d3ea4111a3 Suppress error dialog when process is already gone. Fixes issue #2362. 2011-06-09 17:24:15 +00:00
7e4daded87 Fix TMySQLConnection.Ping in situations when FActive is already false, like a detected disconnect when hovering over server status panel. Most probably fixes what's described here: http://www.heidisql.com/forum.php?t=8499 2011-06-01 22:18:02 +00:00
0b49dfc4b8 Accidentally forgotten files for r3849 2011-05-28 21:25:56 +00:00
a329844e9f Use hex style in WHERE clause and column values of grid updates. Fixes issue #2183. Also, raise warning when 0 rows were affected by UPDATE, INSERT or DELETE action. 2011-05-28 21:20:19 +00:00
2d548b5ef6 Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425. 2011-05-27 04:48:21 +00:00
96baa670c8 Fix detection of table name on MSSQL / data grid. Enables grid editing again. 2011-05-23 20:25:59 +00:00
3e4836839b Allow ANSI quotes in VIEW code. Fixes issue #2419 2011-05-19 22:06:28 +00:00
3b91279777 Introduce support for BIT fields in grids and export output. See issue #766 and http://www.heidisql.com/forum.php?t=8462 2011-05-10 05:15:59 +00:00
63922c3325 Forgot to make column lengths public in previous commit. 2011-05-01 06:03:12 +00:00