49 Commits

Author SHA1 Message Date
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
06e78d9d95 Code cosmetic: make handling of MySQL client flags more compact, remove unused options from published property. 2011-04-13 20:22:46 +00:00
82690c0476 Catch late errors in multi statements returning multi results, when a follower query of a resultset query contains errors. Must check if mysql_next_result() returns > 0. Fixes issue #2323. See http://dev.mysql.com/doc/refman/5.0/en/c-api-multiple-queries.html . 2011-04-10 19:57:04 +00:00
2464070b92 Remove debug dialog 2011-04-10 11:44:53 +00:00
af2df77704 Ensure we pass nil/null for empty SSL parameters, where I thought PAnsiChar('') returns nil which is not the case obviously. Tries to fix issue #2336. 2011-04-10 11:42:42 +00:00
6116df42ed Reset current row number after deleting grid row, so SetRecNo jumps to the right row on a later created row. Fixes issue #2308. 2011-04-07 22:10:20 +00:00
2e44387eb2 Remove seconds from uptime and connected time in status bar. Should fix flickering finally. See http://www.heidisql.com/forum.php?t=7977 2011-04-06 19:59:36 +00:00
1559c6ebe7 Adjust TAdoDBConnection.GetCharsetTable so it returns the same structure as other GetCharsetTable()s do. Fixes an exception when calling the table tools dialog on MSSQL. 2011-04-06 19:10:37 +00:00
4d9f038c16 Use vendor image as server node icon 2011-04-06 19:08:18 +00:00
ea41508884 Decrease the myriad of calls to StatusBarDrawPanel to a minimum. Avoid calling StatusBar.Repaint which always repaints all panels, leading to quite a lot code to execute. Server version/vendor now gets only refreshed after having connected and on a connection switch. Should fix issue #2304 and calm down idle times. 2011-04-05 22:19:40 +00:00
e5c8df2ecb Remove driver stuff from MS SQL error messages. 2011-04-04 06:16:32 +00:00
049e4bb526 Group network types in fewer dbms names, to have less code. Also, support other MS SQL network types: tcp/ip, spx/ipx, vines and rpc. 2011-04-04 06:12:56 +00:00
2816377c4a Fetch database names in MS SQL from sys.databases. Hopefully fixes an empty result on some servers for EXEC sp_databases. 2011-03-31 22:08:15 +00:00
87c31b84ac MS SQL hides information_schema in all places. Return a hardcoded list of objects. 2011-03-31 22:05:40 +00:00
e3661efd58 Column type detection must not use the type index as enumerator any longer, as not all type indexes are used for all dbms. Fixes issue #2365. 2011-03-31 19:40:38 +00:00
0c5206c002 Handle multiple query results in MS SQL. 2011-03-30 22:34:01 +00:00
fb20c8e75f Fix offset portion in LIMIT clause, at least for MySQL. 2011-03-30 05:37:52 +00:00
4fbf2c23dd Introduce experimental MS SQL support 2011-03-29 23:20:21 +00:00
7022bf3fcd Remove unused forward declaration. 2011-03-18 06:49:51 +00:00
49a97584e6 Code preparation for non-MySQL connections: Extract abstract stuff into a new TDBConnection class, and let TMySQLConnection derive from that. Same with TDBQuery / TMySQLQuery. See issue #1008. 2011-03-17 23:03:54 +00:00