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
61855c4e8b
In ParseViewStructure(), the CREATE VIEW code can contain the database name which the regular expression did not expect. Fixes issue #2188 .
2010-10-08 12:00:18 +00:00
65e34d81a2
Use right SynEdit keystrokes for making selection uppercase and lowercase. Fixes issue #2191 .
2010-10-07 22:22:59 +00:00
db64fa365a
Add right click menu item to SQL log: "Copy line to new query tab". Fixes issue #2198 .
2010-10-07 22:06:55 +00:00
081858679a
Split copy table query into two: a) CREATE and b) INSERT INTO target (..) SELECT (..) FROM src, to avoid "Duplicate column name" error on old 4.0 servers. Fixes issue #2205 .
2010-10-07 21:51:09 +00:00
fa8e1c6e20
Enable "Clear filter" button immediately after loading an old filter. Fixes issue #2197 .
2010-10-07 21:36:45 +00:00
a2d4396e17
Avoid division by zero in rare cases while painting color bars in query profile. Fixes issue #2196 .
2010-10-07 21:27:27 +00:00
eb098269b9
Include server functions declaration in parameter hints.
2010-10-07 21:16:13 +00:00
579bb6097e
Fix some node focus bugs when switching connections.
2010-10-07 18:44:01 +00:00
be7ca6f1ac
Revert r3546 (procedure parameters in completion proposal). Instead, add proposal with DefaultType=ctParams, which is able to display parameters as hint. Fixes issue #2149 .
2010-10-06 23:07:06 +00:00
38f3a580ea
Sanitize help menu from unwanted items
2010-10-06 22:56:59 +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
f42c62638c
Display parameters of stored routines in completion proposal. Fixes issue #2149 .
2010-09-20 22:12:07 +00:00
18f67ffdc3
Internally, always use binary strings, not hex strings, when inserting or updating grid rows. Fixes SQL errors when actBlobAsText is activated and UPDATE sends unquoted "_binary foobar" as value. Fixes issue #2166 . Also, do not reload grid data when activating text display.
2010-09-19 23:04:56 +00:00
243a553d9d
Make prompt to save modified SQL text customizable. See http://www.heidisql.com/forum.php?t=6373
2010-09-19 18:52:22 +00:00
22f9fa176b
Make "Wrap long lines" button work globally, for all SynMemos except the SQL log. Also, store and restore its state when closing/opening HeidiSQL. See forum post: http://www.heidisql.com/forum.php?t=6476
2010-09-19 13:46:55 +00:00
0889281c22
Let priv tree track the node's checkstate itself, and initialize all nodes in Tree.OnPaint, so there is no node left out when AutoOptions.toAutoTristateTracking is doing its job. Further, check/uncheck parent priv nodes manually in OnInitNode as this is not done by auto-tracking. Fixes issue #2163 again.
2010-09-17 05:24:44 +00:00
51982dd6c3
Force result tab balloon hint to disappear a) after 10 seconds and b) when main form loses focus. Fixes issue #2176 .
2010-09-16 20:13:35 +00:00
27cb6440e5
No need to show file size of snippets in helper box. See issue #2137 .
2010-09-16 19:34:14 +00:00
a40c10b4c4
Return value of FUNCTIONs can contain UNSIGNED keyword, which the regular expression based parser did not expect. Fixes issue #2177 .
2010-09-16 19:24:20 +00:00
0e556a4346
If session username was stored and password is empty, set focus on password field, not on username field. Fixes issue #2179 .
2010-09-16 19:11:59 +00:00
6cd5673a21
Remember sorted column and its sort direction, across sessions. Requested via forum: http://www.heidisql.com/forum.php?t=6419#p6423
2010-09-16 19:04:25 +00:00
ab9d452ea8
Wording: Rename FInitEditorOnTreeSelection var to FTreeRefreshInProgress, while inversing relevant logic.
2010-09-15 23:19:07 +00:00
f86a72dd36
Attempt to fix some weird effects on tree node selection and refreshing logic. Unhides "Data" tab after creating a new table. Fixes issue #2148 . Details:
...
* Do process OnFocusChanged also while tree db refreshes, just avoid calling actEditObjectExecute.
* Make SelectedTable a property, rename to SelectedDbObj
* Remove calls to debug(), prefer LogSQL with lcDebug parameter
2010-09-15 23:09:43 +00:00
3865d383da
Avoid running SHOW TABLE STATUS FROM '' and friends on an empty database name, when trying to determine a column's origin.
2010-09-14 23:24:32 +00:00
9a58fc526b
Load text file: Fix usage of wrong indexed db object when selecting a table via drop down box. Fixes issue #2174 .
2010-09-14 19:05:13 +00:00
82a6472896
Place a "See results" button to the "Find text on server" dialog, which creates a new query tab and executes a SELECT batch to see search results in grids + tabs. Fixes issue #2151 .
2010-09-13 22:46:54 +00:00
f69e8b31ce
User manager: When checking a first level node, do not only auto-check initialized sub nodes, but also the non-initialized ones. Fixes issue #2163 .
2010-09-11 11:46:17 +00:00
a0c0bc1f4c
Export VIEWs in two passes: First create tables with same columns, secondly remove that table and create the final view. This way errors caused by VIEW to VIEW dependencies are solved. Fixes issue #2161 .
2010-09-10 21:45:23 +00:00
39edbd4deb
Fix VIEW code parser for name length of only 1 character.
2010-09-10 21:30:09 +00:00
eb4ec87ba4
SynMemo.PasteFromClipboard sometimes throws some "Cannot open clipboard" exception - don't know why. Turn the exception into a simple message dialog.
2010-09-09 21:53:29 +00:00
a2aa3f3438
Display length of SQL text in status bar.
2010-09-09 21:50:52 +00:00
eccf950566
Make SaveQueryMemo a member of TQueryTab, and suppress reload dialog when SQL file was saved in Heidi, not from outside. Also, fix non working file modification watch for newly created files - was only started when loading an existing file.
2010-09-09 21:36:44 +00:00
9231338fa9
Enhancement: Add drop down menu to "Execute query" button, with items Run, Run selection, and Run current query.
2010-09-09 20:51:41 +00:00
4eb4a68f05
Adjust TDBObjectEditor so it works on its own instance of a TDBObject. Otherwise the object gets freed in ApplyModifications -> RefreshActiveTreeDB -> ClearDbObjects. Afterwards you got unpredictable results with the pointer to the old TDBObject, e.g. the wrong tree node was selected after that refresh.
2010-09-08 22:49:16 +00:00
b3ca582b1e
Cosmetic: Increase height of "editor disabled" label, so larger Vista fonts are not cut off vertically.
2010-09-08 20:03:19 +00:00
909080245a
Remember if create code of a view was fetched, successful or not. Avoids duplicated error messages in SQL log.
2010-09-08 19:58:37 +00:00
80a8424ea1
Avoid duplicated SQL error message when SHOW VIEW is not allowed.
2010-09-08 19:49:37 +00:00
6fa29605fd
SHOW VIEW may be not allowed. Disable VIEW editor in that case, but do not run regular expression into a no-match AV. Fixes issue #2159 .
2010-09-08 19:48:18 +00:00
3a4c8ad04a
In cases where previously focused datagrid node was the last, virtually inserted one, refocus the last available node, so there is never some undefined focus. Fixes issue #2145 .
2010-09-08 19:13:53 +00:00
8a986c98ef
Cosmetic: Label caption still sticks to its name until loop modifies it. Fixes issue #2158 .
2010-09-08 19:03:27 +00:00
566fe3c149
Fix wrong logic in detection of unformatted number strings, in CleanupNumber(). Fixes issue #2155 .
2010-09-08 18:58:06 +00:00
a08d0d9949
Remove feature: "Skip tables larger than X MB". Fixes issue #2153 .
2010-09-08 18:16:30 +00:00
bad9c2cec3
Attempt to fix nil pointer exception (issue #2157 )
2010-09-08 17:12:04 +00:00
f323420ef1
Enable TDBObject instances to return and cache their own CREATE code, and replace various manual SHOW CREATE xyz occurrences with this new function call. Additionally, modify ParseViewStructure so it takes the CREATE code instead of just the VIEWs name, so it works similar to ParseTableStructure and ParseRoutineStructure. Finally, take this CREATE code to detect all settings for a VIEW, instead of taking them from information_schema.VIEWS. Fixes issue #2131 .
2010-09-07 20:58:48 +00:00
0598e78d16
ResetNode deletes children and causes follow up AVs in RefreshActiveTreeDB in conjunction with changing focused node - happens when a modified table is left and user presses "Yes" to save changes. Instead, deinit database node lame, per Node.States. Fixes issue #2147 .
2010-09-05 23:20:41 +00:00
b622ad3f50
Throw away query profile result on disconnect, to avoid follow up AVs somewhere in TMySQLQuery.SetRecNo where the connection object still seems being used. Also, reinit helper tree nodes lame instead of immediately, as InitNode() has code which expects the relevant query tab to be open currently.
2010-09-05 22:58:53 +00:00
a13493959e
Refresh column names in helper tree after altering a table. Fixes issue #2141 .
2010-09-05 22:23:52 +00:00
b16b7010a2
Issue #2134 : More enhancements for text import dialog:
...
- Add option to unformat local numbers from file contents
- Add option "Low priority" again
- Fetch warnings and notes via SHOW WARNINGS, display them in log panel and leave dialog open if there are any
- Inform user if 0 rows were imported and display hint about what could be the cause
2010-09-05 10:33:39 +00:00
b51123ee2c
Reorganize "import textfile" dialog, and implement an own CSV parser, selectable as an alternative to the LOAD DATA method. Fixes issue #2134 .
2010-09-03 22:22:23 +00:00