157 Commits

Author SHA1 Message Date
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
6703f20711 Move global LoadConnectionParams() to class function TDBConnection.ReadFromRegistry() 2012-03-26 18:34:33 +00:00
2e6d39c401 Do not auto check all child nodes by checking parent node, when clicking "Check all tables". See http://www.heidisql.com/forum.php?t=10334 2012-03-24 22:01:27 +00:00
156bd42291 Prevent exporting dummy VIEWs from having multiple DEFAULT CURRENT_TIMESTAMP clauses. Fixes issue #2748. 2012-02-28 22:36:25 +00:00
af3f590723 Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before. 2012-02-27 22:16:05 +00:00
504aed87e6 Follow up to r4059, use Tree.CheckState[Node] also when unchecking nodes. See issue #2738. 2012-02-24 23:33:12 +00:00
b76bd09d13 Use Tree.CheckState[Node], not Node.CheckState to fix a potential OnCheck event. Fixes issue #2738. 2012-02-24 20:14:11 +00:00
a816787be4 Add context menu to object tree in export dialog, and add items to check all/none/bytype. See http://www.heidisql.com/forum.php?t=9844 2012-02-04 11:47:41 +00:00
ba14143238 Export whole CREATE VIEW code, not only the VIEW body. Fixes issue #2625. 2012-02-04 06:52:21 +00:00
5d4a33198c Do not export data from MRG_MYISAM tables. See http://www.heidisql.com/forum.php?t=9842 2012-02-02 20:05:53 +00:00
990535228f Autofix TYPE|ENGINE clause when exporting to server. Fixes issue #2688. 2012-01-18 20:56:27 +00:00
10c17f502d Do not store and restore old value of FOREIGN_KEY_CHECKS variable, just set it to 0 when beginning to export, and to 1 again at the end. Should prevent from running into "'foreign_key_checks' can't be set to the value of 'NULL'" error when disconnects happen within export process. Fixes issue #2500. 2011-12-17 14:33:44 +00:00
1a15e89023 Use -- for line comments, not #, to support MS SQL also in export files. 2011-12-11 21:11:31 +00:00
8ed065ea97 Do not modify SQL_MODE when exporting, just do that temporarily before creating triggers. Avoids running into errors when e.g. ANSI_QUOTES is turned on. Fixes issue #2619. 2011-12-04 11:11:48 +00:00
a69041d17d Add support for Windows 7 task button progress. Unify all callers of ProgressBarStatus in a set of 5 functions in main unit instead of helpers, as this is where the progress bar is placed and also we need the handle of the main window. 2011-11-08 22:27:52 +00:00
968efc99f3 Export VIEWs with alternative version of SELECT code. Follow up to r3941, see issue #2546. 2011-11-05 00:10:47 +00:00
242b128885 Populate database pulldown with dbs from current connection in export window. Fixes issue #2572. 2011-11-05 00:07:23 +00:00
783cbdbcc0 Save and restore settings in table tools dialog. Restore server selection only in export mode. Fixes issue #2520 and non-restored previous file settings. 2011-08-14 10:15:09 +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
3c725b3d76 Quote collation clause in all places. Fixes issue #2479. Related: issue #1852. 2011-06-27 19:44:07 +00:00
e96fa77cbd Do not cache dialog instances any longer. OnCreate code is mostly very quick, and caching them adds quite some pitfalls into the code. Not to mention 30 lines less code in main.pas now :) 2011-06-26 20:01:42 +00:00
b53e0c466e FindDBNode cannot find the right node if db tree is refreshing and has no focused node. Pass connection parameter to FindDBNode to fix that. Effect was that after a table structure change, the db tree was broken. Fixes issue #2471. 2011-06-23 10:44:30 +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
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
64974c3118 Fix potential division by zero exception 2011-05-05 19:11:57 +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
f831bf3103 Display percent of processed objects on table tools dialog, and show progress bar. 2011-04-16 06:41:54 +00:00
30498b99f0 Fix quoting for MS SQL mode. 2011-04-16 05:38:38 +00:00
bec6422d34 Turn close button into cancel button for processing time, and break loop in TfrmTableTools.Execute when clicked. See http://www.heidisql.com/forum.php?t=8238 2011-04-16 05:34:05 +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
08e4e0666a Use unified method for getting database names. 2011-04-01 05:24:37 +00:00
4142bed111 Quote identifiers with the right quote char when exporting to server. 2011-04-01 05:20:45 +00:00
4fbf2c23dd Introduce experimental MS SQL support 2011-03-29 23:20:21 +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
6572de2f3b Display sum of all checked objects in lower left label of table tools dialog. 2011-03-10 20:13:58 +00:00
34c1969f5f Fix wrong "0 %" display when table has 0 rows. 2011-03-03 19:44:28 +00:00
afc9f490c1 Display nothing instead of "-1" for processed rows in case of non-tables. See http://www.heidisql.com/forum.php?t=7895 2011-03-03 19:40:31 +00:00
972aa9e4d2 Display the real row count at the end of exporting table data, using an internal counter, to enhance accuracy. See http://www.heidisql.com/forum.php?t=7895 2011-03-03 19:21:35 +00:00
3d677e963f Focus first prechecked table or db node in table tools dialog, to trigger a Tree.OnChange call, which again fixes the width of the size column. Fixes issue #2277. 2011-01-26 22:45:20 +00:00
0911c8edad Init all objects in active db before preselecting, so the tree does not just check the parent db node when we only want the first object in it. Fixes issue #2267. 2011-01-19 20:11:45 +00:00
e3ce880b69 Call Application.ProcessMessages in certain intervals while export runs, and disable most controls so nothing critical can break the export loop. See http://www.heidisql.com/forum.php?t=7174 . 2010-12-06 22:52:41 +00:00
6f95a796e1 Modify identifier quoting logic:
- Move QuoteIdent() and DeQuoteIdent() out of TMySQLConnection, make them classless
- Remove TMainForm.mask(), instead always use QuoteIdent()
- Introduce a third parameter to QuoteIdent(): "AlwaysQuote" - setting this to false will quote only if required
- Set AlwaysQuote to false for all stuff which drops some code into the query editor, see http://www.heidisql.com/forum.php?t=6986
2010-11-24 23:12:13 +00:00
a8ce8cd7fa Export output file may be in use by another application. Catch such exceptions and stop the whole export loop. See http://www.heidisql.com/forum.php?t=6850 2010-11-13 20:37:46 +00:00
910975aa40 Ensure SQL list has the same number of items as result list has, to avoid AVs when SELECT returned an error. See http://www.heidisql.com/forum.php?t=6824 2010-11-13 20:20:19 +00:00
be3e393534 Add "case sensitive" checkbox to "Find text on server" dialog. Fixes issue #2199. 2010-10-23 07:07:55 +00:00
6c2a100945 Implement combo box for definer in routine + view + trigger editor. Fixes issue #2189. Some related changes here:
- Remove ensureValidIdentifier() and its partly uncatched exceptions. Instead, disable "OK" buttons for empty table/view/proc name.
- QuoteIdent and DeQuoteIdent now take the glue char instead of a "HasMultiSegments" boolean param, so they're more exact when "user@host" or "db.name" come in.
2010-10-12 22:13:08 +00:00
5d13d0677b The 3 procedures Parse(Table|View|Routine)Structure() already do some connection specific stuff, and now even more, so they're moved to TMySQLConnection now. In order to display the right collation even if only the character set was found in a CREATE TABLE code, the default collation per charset is detected via CollationTable. See http://www.heidisql.com/forum.php?t=6348 . 2010-10-08 20:16:53 +00:00
0fa6c15c9d Implement multiple connections per window. DBtree and friends now have their nodes bound to TDBObject instances. Fixes issue #2144. 2010-10-05 23:06:29 +00:00