741 Commits

Author SHA1 Message Date
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
b87745d0d3 Implement fetching multiple results from one query, e.g. from a procedure call. Fixes remaining stuff in issue #1135. 2010-08-28 15:17:10 +00:00
dd051b95ac Internally cancel modification on running table editor when dropping its db object. Avoids asking for modifications after dropping, which then results in SQL errors. Fixes issue #1881. 2010-08-21 21:20:58 +00:00
8076f9b483 Reset used database name when focusing 1st level node. Fixes issue #2091. 2010-08-21 14:20:27 +00:00
c93c8ffdb0 Update row count in data tab top label after deletion and update actions. Fixes issue #2039. 2010-08-21 13:28:00 +00:00
360152740a Use Cromis.DirectoryWatch class by Iztok Kacin (BSD licensed) to detect external changes on loaded sql files. Fixes issue #1981. 2010-08-21 11:54:06 +00:00
56acceee6d Do not restrict search + replace dialog to query tab editors, but to all available, non-readonly TSynMemo's, like it was already the case for actReformatSQLExecute. See issue #2132. 2010-08-20 06:10:25 +00:00
2893fb3a52 Activate forgotten incremental search in helpers tree. 2010-08-19 06:09:45 +00:00
5a26c07aa2 Use the right grid reference in column loop. Fixes issue #2115. 2010-08-18 07:16:51 +00:00
6d77dc33ca When double clicking a helper tree, the query editor should only get focus if there is non empty text. First level nodes never create text but double clicking them stole focus. 2010-08-18 06:47:38 +00:00
8bd5388f73 Optimize room usage in helper tree, so it works even when resized to a minimum width. Fixes issue #2126.
* Make sure 2nd column never takes more width than 1/3 of the tree
* Set TextMargin from 4 (default) to 0, so every text moves to their icons
* Enable toAutoSpanColumns, so cells with an empty 2nd column expand their text to the right if needed
2010-08-18 06:42:55 +00:00
a4d16e17ee Cosmetic: Display length of log line as byte/kb/mb/... unit. 2010-08-17 17:00:52 +00:00
3036f64a31 Check registry data type before assuming it's a string. Fixes issue #2127. 2010-08-17 16:59:08 +00:00
73170588b7 Fix AV in cases of reconnection between firing user queries. 2010-08-17 07:26:21 +00:00
bc8bd6d1df Query grids did not get freed when not closing the parent query tab. Followed by AVs triggered by old grid(s) still hanging around in memory. Broken by r3477 as a fix for issue #2107. Fixes issue #2124. 2010-08-17 07:25:04 +00:00
7cedc84823 Display progress bar when deleting rows in 1 or more tables via action "Empty table(s)". Also, use TRUNCATE on all server versions. Don't know why I did that per DELETE FROM on servers below 5.0.3. See http://www.heidisql.com/forum.php?t=6285 2010-08-16 19:50:24 +00:00
c3d9e9a7b4 Show progress bar while deleting grid rows. Fixes issue #2116. 2010-08-16 07:06:36 +00:00
d9b2c98150 ActiveQueryHelpers should return nil instead of raising an exception, when called from outside a query tab. Fixes issue #2122. 2010-08-16 06:57:22 +00:00
0edb542288 Clear fixed query editor on tab doubleclick. Fixes issue #2110. 2010-08-16 06:52:56 +00:00
faa107c3be Destroying a grid owned by a query tab sheet while the tab sheet gets destroyed results in an AV. Fixes issue #2107. 2010-08-15 15:23:35 +00:00
733799db17 Fix compiler notice - remove unused variable. 2010-08-14 07:04:36 +00:00
3139169ca2 Optimize length of lines in auto created table wide filter 2010-08-14 06:38:49 +00:00
985bd5583f Minor code cosmetic: Avoid typecasting where we have a generic object. 2010-08-13 20:05:42 +00:00
7ea2672a2b Add a safety check to avoid AVs in rare situations, where the number of db objects has been decreased from outside. Fixes issue #2114. 2010-08-13 20:03:28 +00:00
88e7f7aa05 Implement query profiling in helpers box. Enhance usability of turning the listbox + tabset into a tree, with 5 root nodes instead of 5 tabs. Fixes issue #902. 2010-08-13 19:42:54 +00:00
25fb0ed266 Refactor code in SQL help dialog, replace the TTreeView with a VirtualTree. 2010-07-31 17:16:08 +00:00
b13ce034be Store last session name at disconnect time instead when when connecting. Fixes issue #2102. 2010-07-26 19:16:59 +00:00
33ff2e95d3 Add button right besides recent filter pulldown menu, for clearing data grid related stuff for selected table, session or all sessions. Fixes issue #2096. 2010-07-24 13:23:17 +00:00
c297024b60 Minor code cosmetic 2010-07-20 07:55:32 +00:00
65b701681e FocusedColumn may also be "InvalidColumn" (-2) when the relevant grid column is hidden. Fixes issue #2088. 2010-07-14 22:36:37 +00:00
6a3e551d16 Remove code which is never executed - BLOB preview is done internally, not via temporary file. 2010-07-13 19:24:59 +00:00
4844e2d975 Fix exceptions triggered when some grid cell editors are destroyed, e.g. by accessing the registry too late. Hopefully fixes issue #2046. 2010-07-13 19:22:33 +00:00
47afa8dfe7 Add "Clear file list" to query load menu. Fixes issue #2082. 2010-07-13 14:54:45 +00:00
f5a5ec4686 Add fallback when trying to detect length of column. Fixes an AV in rare special cases. 2010-07-07 17:07:15 +00:00
2e28d2a1c6 Do not trigger completion proposal in query editors when cursor is inside a comment. Fixes issue #2070. 2010-07-05 18:31:53 +00:00
05c7e06ed2 Force reinitializing nodes in ListDatabases when connecting. Fixes issue #1491, the hot tracking AV. 2010-07-05 17:30:19 +00:00
5757899eaa Bring back database filter pulldown, for users who dislike to create one session per filter. Fixes issue #2054. 2010-07-04 10:59:46 +00:00
ac571734f6 Add menu item for inserting UNIX timestamp into grid cells. Fixes issue #2060. 2010-07-02 22:58:12 +00:00
6a84f1a4af After disconnecting, accessing an old TMySQLQuery's connection can result in unhandled exceptions. Catch all of them in TMainForm.tabsetQueryGetImageIndex, not just those of which we're aware of. Fixes issue #2048. 2010-07-01 22:44:24 +00:00
f8b5924d97 Do not raise, just put a log info when previously focused db or table is gone after refreshing. This is a normal case when db or table was deleted from outside or via query. Fixes issue #2059. 2010-07-01 22:03:29 +00:00
4fb7f4cdc5 When copying HTML from grid rows, StreamToClipboard needs its 3rd parameter set to true to create the required clipboard header for rich text editors. Also, calculate values for StartHTML and EndHTML - seems required by Mozilla based applications like Thunderbird. Fixes unformatted HTML pasted into rich text editors. 2010-07-01 18:58:00 +00:00
780cf0f19f Add support for exporting grids as Wiki table markup 2010-06-30 23:21:28 +00:00
f47eb39316 Merge 5 GridToXYZ export routines into one, so there is less code to maintain and to make it easier to add further export formats. 2010-06-30 22:34:42 +00:00
5f1c8ae5ff Create query tab array early enough so we don't access them before by actDataPreviewExecute(). Fixes an AV on startup when preview panel was active. 2010-06-30 18:31:14 +00:00
b1b81bd803 Increase auto calculated column width slightly, so the flashing "..." button has room when editing cells, without cutting text. Fixes issue #2051. 2010-06-28 19:49:41 +00:00
315d7dcdfe Do not annoy user with error popup when accessing table data in information_schema. 2010-06-20 16:59:18 +00:00
d436df314a Use TOpenTextFileDialog instead of TOpenDialog for two places where we load SQL and text cell contents. That dialog has an additional "Encoding" dropdown, where the user can select the file's encoding, which can be required if the auto detection did not succeed. Fixes issue #2025. 2010-06-20 10:05:37 +00:00
1d9ae863b2 Tweak LaTeX export: Fix case in all occurrences of "LaTex" - must be "LaTeX" and remove trailing "\r\n" in output. 2010-06-18 17:00:12 +00:00
edb9ce1487 Split identifiers with dot only in explicit cases, so column names containing a dot can be loaded and created. Fixes issue #2026. 2010-06-18 16:52:41 +00:00
163a8c13d6 Implement LaTeX output for "Copy as" actions. Code parts from brampton. Fixes issue #2020. 2010-06-18 16:32:20 +00:00