2189 Commits

Author SHA1 Message Date
e01b7035fc Set focus on connection root after dropping tables so there is a focused node when firing later queries. Fixes issue #2224. 2010-11-14 23:16:08 +00:00
23da40e86e Add safety check for availability of query profiling feature, also on server versions which should normally have it. Fixes issue #2229. 2010-11-13 23:11:48 +00:00
98300c9bd5 Make SET cell editor resizable, and store and restore its dimensions. Fixes issue #2212. 2010-11-13 21:16:36 +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
3339b641ff Specify utf-8 charset via meta tag. Although the file itself already has utf-8 encoding, some web browsers may not be able to detect this the right way. Fixes issue #2231. 2010-11-13 18:22:06 +00:00
55452f60cc Forgot to add REFERENCES to list of write privs 2010-11-11 13:16:36 +00:00
d98a0e826d Although the REFERENCES privilege is unused by MySQL, the user manager needs to revoke it, for users which have it assigned in some unwanted privilege object. 2010-11-11 13:05:44 +00:00
8bdbed7100 Clean up datagrid context menu "Insert date/time":
- remove timestamp (not Unix Timestamp) item, relevant on super old servers only
- add GUID item. Fixes issue #2206.
- prefix all items with descriptive captions
2010-11-11 08:10:30 +00:00
9e4344a6ab Fix previous commit, which caused an AV on startup, as long as no tab was set. 2010-11-11 06:50:52 +00:00
8674ce7610 Try to fix unset main tab on Wine. Most likely happened when activating a hidden tab. Fixes issue #2227. 2010-11-11 06:46:26 +00:00
b6f7c17ac1 Rewrite code behind user manager dialog:
- Use GRANT + REVOKE queries as recommended by MySQL.
- Fixes various wrong INSERTs/UPDATEs which were intended to normalize structure in mysql db.
- Remove features: max query count per hour/day/...
- Enables user to assign stored routine privileges now, see http://www.heidisql.com/forum.php?t=6684
- Add "Clone user" button, fixes issue #1316
- Add "Repeat password" edit box, fixes issue #1461
- Paint privilege text in different colors for read/write/admin commands.
2010-11-10 21:15:54 +00:00
d7cb1f3386 Safely ignore checked "Query profile" node on old servers. Fixes issue #2228. 2010-11-09 22:25:39 +00:00
e7e666096f Right click on query tab starts doubleclick timer when context menu closes. So, right click + left click is detected as double click and closes the selected query tab. Fixed hereby by ignoring right clicks. See http://www.heidisql.com/forum.php?t=6803 2010-11-09 21:51:10 +00:00
a92ddb7387 Main tabs get activated in an unpredictable way when hiding some of them. In order to avoid unwanted fetching row stuff, hide tabs later, after activating the wanted one. Fixes firing SELECT from an empty table name (Incorrect table name ''). See http://www.heidisql.com/forum.php?t=6646 2010-10-31 22:04:49 +00:00
a19e85a9e2 Implement TObjectList comparer which orders items in a way that dropping them does not trap in SQL errors. Also, avoid errors due to foreign key checks. Fixes issue #2193. See also http://www.heidisql.com/forum.php?t=6322 2010-10-31 14:32:06 +00:00
d84d0c1ea0 Process tables and views only in "Empty tables" action, ignore routines etc. Fixes issue #2190. 2010-10-26 19:40:58 +00:00
0de7a50216 Add buttons for moving routine parameters up and down, on routine editor 2010-10-26 19:08:16 +00:00
9a3211466a Fix detection of focused db object for usage in copy table dialog. Could happen that a trigger with the same name of the wanted table was taken, instead of the table. 2010-10-26 18:47:59 +00:00
32c63790c3 Increase minimum width of icon column so upper numbers are not cut away. 2010-10-26 18:34:08 +00:00
e2cc3482c0 Paint one icon per index in a column editor row, not only for the first key. Fixes issue #2211. 2010-10-25 23:29:17 +00:00
1dc0ed5067 Set caret to location of erroneous SQL after execution. Fixes issue #668. 2010-10-25 06:25:05 +00:00
be3e393534 Add "case sensitive" checkbox to "Find text on server" dialog. Fixes issue #2199. 2010-10-23 07:07:55 +00:00
c3d14f914a Remove "R" hotkey from "Routine body" label, so the pulldown grid editor in the parameter list is not unfocused when pressing "R". Fixes issue #2214. 2010-10-21 22:19:16 +00:00
2d015bc75a Fix EStringListError when disconnecting from a server with many databases, having the ListDatabases open, and switching to a server with less databases. See http://www.heidisql.com/forum.php?t=6594 2010-10-21 22:01:41 +00:00
9d96d5371d Avoid AVs when renaming or creating sessions without an active connection in the background. 2010-10-20 16:41:12 +00:00
9b0995753b Revert r2975 - false detection of VARCHARs as BLOBs on 4.0 servers. Seems somehow elsewhere. Additionally, r2975 introduced a false detection of VARBINARY columns as VARCHARs. Fixes issue #2182 and hopefully does not break issue #1588 again. 2010-10-19 22:36:56 +00:00
e6abc640dd Keep ignorance of DateToStr exceptions in date/time grid editor, but raise everything what can happen apart from that. 2010-10-19 21:57:46 +00:00
da114cfa32 Add support for large and negative TIME values in grid editor. Fixes issue #2203. 2010-10-19 21:45:36 +00:00
57fd30ceec Fix empty db name in query memo when doubleclicking db tree. See http://www.heidisql.com/forum.php?t=6588 2010-10-12 22:21:45 +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
62950faccc Fix wrongly quoted db and table name in SHOW COLUMNS FROM query - accident in previous commit. 2010-10-08 20:28:49 +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
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