Commit Graph

4274 Commits

Author SHA1 Message Date
Ansgar Becker
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
Ansgar Becker
d84d0c1ea0 Process tables and views only in "Empty tables" action, ignore routines etc. Fixes issue #2190. 2010-10-26 19:40:58 +00:00
Ansgar Becker
0de7a50216 Add buttons for moving routine parameters up and down, on routine editor 2010-10-26 19:08:16 +00:00
Ansgar Becker
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
Ansgar Becker
32c63790c3 Increase minimum width of icon column so upper numbers are not cut away. 2010-10-26 18:34:08 +00:00
Ansgar Becker
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
Ansgar Becker
1dc0ed5067 Set caret to location of erroneous SQL after execution. Fixes issue #668. 2010-10-25 06:25:05 +00:00
Ansgar Becker
be3e393534 Add "case sensitive" checkbox to "Find text on server" dialog. Fixes issue #2199. 2010-10-23 07:07:55 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
9d96d5371d Avoid AVs when renaming or creating sessions without an active connection in the background. 2010-10-20 16:41:12 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
da114cfa32 Add support for large and negative TIME values in grid editor. Fixes issue #2203. 2010-10-19 21:45:36 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
65e34d81a2 Use right SynEdit keystrokes for making selection uppercase and lowercase. Fixes issue #2191. 2010-10-07 22:22:59 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
fa8e1c6e20 Enable "Clear filter" button immediately after loading an old filter. Fixes issue #2197. 2010-10-07 21:36:45 +00:00
Ansgar Becker
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
Ansgar Becker
eb098269b9 Include server functions declaration in parameter hints. 2010-10-07 21:16:13 +00:00
Ansgar Becker
579bb6097e Fix some node focus bugs when switching connections. 2010-10-07 18:44:01 +00:00
Ansgar Becker
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
Ansgar Becker
38f3a580ea Sanitize help menu from unwanted items 2010-10-06 22:56:59 +00:00
Ansgar Becker
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
Ansgar Becker
f42c62638c Display parameters of stored routines in completion proposal. Fixes issue #2149. 2010-09-20 22:12:07 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
27cb6440e5 No need to show file size of snippets in helper box. See issue #2137. 2010-09-16 19:34:14 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
ab9d452ea8 Wording: Rename FInitEditorOnTreeSelection var to FTreeRefreshInProgress, while inversing relevant logic. 2010-09-15 23:19:07 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
39edbd4deb Fix VIEW code parser for name length of only 1 character. 2010-09-10 21:30:09 +00:00
Ansgar Becker
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
Ansgar Becker
a2aa3f3438 Display length of SQL text in status bar. 2010-09-09 21:50:52 +00:00
Ansgar Becker
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