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
52c57c84e3
Fix follow up problems introduced in r3795: DROP DEFAULT on renamed column took the old column name, and the old table name is used also when it was renamed. Revert r3795, move DROP DEFAULT clauses before the main ALTER query, and introduce a .OldDataType property on TTableColumn to check if that can have a default value.
2011-04-30 05:07:50 +00:00
3c11e6c5a8
Introduce a separate dialog for all "copy grid data as .." actions, including the file export. Fixes issue #1499 .
2011-04-28 07:33:49 +00:00
b7cec30bd3
Exceptions are caught in TMySQLConnection.GetAllDatabases, no need to catch them again in TMainForm.DBtreeInitChildren. Also, log an error message if both SHOW DATABASES and the alternative did not work.
2011-04-20 19:03:13 +00:00
007ae9ced5
Do not try to access first character if identifier is empty. Fixes issue #2386 .
2011-04-20 16:51:39 +00:00
cb0e54068c
Remove redundant functions IsMSSQL and IsMySQL.
2011-04-19 23:07:52 +00:00
19fbcfc372
Call mysql_thread_init and mysql_thread_end when applying the thread lock. Fixes issue #2375 .
2011-04-18 23:21:26 +00:00
c8b25c75fa
Bind session parameter object to session manager list nodes, to be able to show the right vendor icon in that list.
2011-04-17 23:21:05 +00:00
9d630b50fc
Use default path to plink.exe when creating a new session. Fixes issue #2303 .
2011-04-17 09:15:21 +00:00