Ansgar Becker
e7bfd5d1ee
Do not autofit "size" column in db tree while nodes get initialized. Implicitly calls OnGetText before text is available. Instead, resize that column only at OnChange time, without examining all possible widths. Just assume "1,023.0 KB" as the widest possible text. Should optimize performance for browsing in tree, and fixes issue #1503 .
2009-12-16 00:30:47 +00:00
Ansgar Becker
7b5e5e410a
Add action and menu item for saving current query contents silently, without Save-As-dialog. Fixes issue #1419 .
2009-12-15 23:28:20 +00:00
Ansgar Becker
27ebadce95
Work around unassigned menu variable. Fixes issue #1536 .
2009-12-15 23:02:46 +00:00
Ansgar Becker
adad668c37
Indicate modified query contents by appending an asterisk to the tabsheet's caption.
2009-12-15 22:51:49 +00:00
Ansgar Becker
59af5bf6ec
Catch exception when user lacks privileges for SHOW VIEW or SHOW CREATE TABLE command.
2009-12-15 22:28:23 +00:00
Ansgar Becker
d1cc99e29f
Fix staying hourglass mouse cursor when editing a view, routine or trigger.
2009-12-15 22:22:36 +00:00
Ansgar Becker
6f0a1b289b
Apply the right datatype index to columns in datagrid. Fixes issue #1534 . Obviously broken by r2821.
2009-12-15 20:19:15 +00:00
Ansgar Becker
39a072ebc8
Remove unused variable
2009-12-15 20:03:28 +00:00
Ansgar Becker
ddf6cf908d
Show column comments as hints on data grid header. Fixes issue #1535 .
2009-12-15 20:02:09 +00:00
Ansgar Becker
d100a9f029
Add <Select All> and <Copy> menu items to SQL code memos. Fixes issue #1530 .
2009-12-15 00:37:54 +00:00
Ansgar Becker
03d7052d78
Fix ALTER code for modified index names, and added + deleted indexes. Fixes issue #1533 .
2009-12-15 00:25:46 +00:00
Ansgar Becker
0d81ddde51
Invalidate CREATE and ALTER code in table editor one more time. Fixes issue #1532 .
2009-12-15 00:07:12 +00:00
Ansgar Becker
dd398bb101
* Factor more code out of each database object editors into parent TDBObjectEditor.
...
* Use this chance to add a confirmation dialog when leaving the editors, to ask the user if he wants to save modifications. Fixes issue #1524 .
* Also, enhance Mainform.RefreshTreeDB in a way that it does not trigger the OnFocusChange event. Important for the editors when saving changes.
2009-12-14 23:55:36 +00:00
Ansgar Becker
cbedf0d163
Fix enabled save button in table editor before anything was changed.
2009-12-13 15:01:22 +00:00
Ansgar Becker
8520f97fff
Hack editor class descendants so that Delphi sees them as TFrame subclasses instead of TDBObjectEditor. Works around Delphi bug 73397 - see http://qc.embarcadero.com/wc/qcmain.aspx?d=73397
2009-12-13 14:29:18 +00:00
Ansgar Becker
bd2f901e0b
Fix wrong SQL for renaming a database with 0 tables.
2009-12-13 07:49:09 +00:00
Ansgar Becker
8670cdba97
Consistently use "Enter xyz name" as default text for new database objects
2009-12-13 07:44:01 +00:00
Ansgar Becker
3aef5bb5e5
Unify Init() method of database object editors.
2009-12-13 07:32:46 +00:00
Ansgar Becker
2dcf02feb3
Implement a parent class for all database object editors (table, view, routine, trigger) and let these editors derive from this class. Could simplify code in the future.
2009-12-11 18:20:16 +00:00
Ansgar Becker
68a1ae0416
Selecting information_schema.TRIGGERS.DATABASE_COLLATION results in "Unknown column 'DATABASE_COLLATION' in field list" on 5.0.? servers. We don't make use of this column, so select NULL instead. Fixes issue #1526
2009-12-11 17:13:03 +00:00
Ansgar Becker
e4914bf582
Disable action for creating new triggers on server versions below 5.0.2.
2009-12-11 16:11:44 +00:00
Ansgar Becker
b4cca2ea1f
Implement handling of triggers as separate database objects, on the same level as tables, routines and views. Means we have a trigger editor frame, a new icon and various code extensions. Fixes issue #806 .
2009-12-11 16:07:59 +00:00
Ansgar Becker
6b92c3b08c
Activate relevant tab before asking if contents shall be saved. Fixes issue #1518 .
2009-12-10 20:48:35 +00:00
Ansgar Becker
dc1802fe32
Enable auto completion pulldown in stored routine editor
2009-12-10 19:01:51 +00:00
Ansgar Becker
a2e0669b17
Enable auto completion pulldown in view editor
2009-12-10 18:59:34 +00:00
Ansgar Becker
8d5111cf8a
Fix flicker in update checker dialog while downloading a build file.
2009-12-10 18:55:01 +00:00
Ansgar Becker
1f1e771fa6
Make views show their data again in data tab. Fixes issue #1515 .
2009-12-09 21:08:38 +00:00
Ansgar Becker
4d7ed2303c
Gracefully be case insensitive in GetDatatypeByName() so we can also pass lower case strings.
2009-12-09 21:05:39 +00:00
Ansgar Becker
eefdbec81c
Render primary key columns in query results in bold font, like in data grid.
2009-12-09 20:03:46 +00:00
Ansgar Becker
f03af60357
Throw away one regular expression logic for detecting table columns, we have a simpler way to do that since r2821
2009-12-09 19:26:35 +00:00
Ansgar Becker
f5abfe559f
Set default position of session manager to current screen center, not desktop center which can be spanned over 2 screens so the dialog appears half on the left and half on the right one. See issue #1511 .
2009-12-09 18:21:52 +00:00
Ansgar Becker
1de8e6344b
Fix SQL error in table editor on MySQL below 4.0.18: Use TYPE instead of ENGINE in these cases. Fixes issue #1517
2009-12-09 18:12:45 +00:00
Ansgar Becker
a24c2bb847
Fix Unicode issue on main tabs: databases and tables with international characters were broken on tab captions. This just converts the main TPageControl to a TTntPageControl, plus its TTabSheets to TTntTabSheets.
2009-12-09 00:13:55 +00:00
Ansgar Becker
a3aae38d2e
Do not add UTF-8 BOM headers to written files, they are not needed in most cases, and break other tools from reading them, e.g. mysqldump. See http://www.heidisql.com/forum.php?t=4622
2009-12-08 23:51:43 +00:00
Ansgar Becker
1c69941f11
SELECT GROUP_CONCAT() does return binary collation also in the latest server versions, that was not fixed in 5.0.46. Extend the workaround with PMYSQL_FIELD.org_table to all versions above 4.1. Fixes issue #1514 .
2009-12-08 18:05:48 +00:00
Ansgar Becker
3ca479dd39
Trigger auto completer on @@SESSION and @@GLOBAL to display variables. Fixes issue #1513 .
2009-12-08 13:58:36 +00:00
Ansgar Becker
0e29eda7ac
Add preference option to use locale number format for CSV+XML+HTML exports. Mainly to work around an Excel bug, which expects float values to be formatted with locale decimal separator when pasting. Fixes issue #1459 .
2009-12-08 09:14:42 +00:00
Ansgar Becker
bd4dd71797
Remember state of "Stop on errors in batch mode" button/action. Fixes issue #1128 .
2009-12-07 20:13:52 +00:00
Ansgar Becker
7a8477c57f
VirtualStringTree.InsertNode internally calls .DoCancelEdit, which is not what we want when the user clicks the "Add column" button while editing another column. Instead, explicitly call .EndEditNode before .InsertNode. Fixes issue #1508 .
2009-12-07 20:00:35 +00:00
Ansgar Becker
ce1da97120
Center session manager dialog on screen instead of main form, so it's never off screen. Fixes issue #1511 .
2009-12-07 18:31:30 +00:00
Ansgar Becker
400f4dd040
Indicate "No default" for a column in table editor. Fixes issue #1510 .
2009-12-06 20:12:21 +00:00
Ansgar Becker
a89977ab6a
Try successive regular expression executions instead of only the first one on a "table clause" before giving up. Hacks around special case "INSERT INTO foo SELECT t. FROM foo f". Fixes issue #1311 .
2009-12-06 17:44:51 +00:00
Ansgar Becker
d3ff85b730
Fix detection of previous token in query memo's. SynCompletionProposal.OnExecute passes x + y coordinates of current caret position - these are pixel values, while we expected them to be character + line numbers.
2009-12-06 17:12:56 +00:00
Ansgar Becker
0218e3b754
Fix empty enum pulldown in datagrid. Broken in r2821.
2009-12-05 21:46:25 +00:00
Ansgar Becker
566ac4a581
Destroy AllDatabases list *after* collapsing database tree, when a session connect is in progress. Hopefully fixes issue #1491 .
2009-12-05 19:57:44 +00:00
Ansgar Becker
44cedeed4e
Try a 99% work around for binary contents of function results: Check if a field is a function result on servers below 5.0.46, if yes, detect it as text type rather than binary. If it's a real table column, leave detection logic as is (Field.charsetnr = COLLATION_BINARY). This surely returns evil text type for SELECT LEFT(binaryfield, 5), but that seems to be a rare situation so that's the compromise here. Fixes issue #725 .
2009-12-05 18:12:47 +00:00
Ansgar Becker
a4e8637bdc
Implement snippet generator for INSERT, UPDATE and DELETE statement using selected table. Clickable via query helpers columns tab, which then only involves selected column names. Fixes issue #1288 .
2009-12-05 17:46:40 +00:00
Ansgar Becker
de45bdd24a
Fix a follow up error of previous commit - need to call CharsetTable.First now.
2009-12-05 16:54:43 +00:00
Ansgar Becker
37f83b6af8
Fix offset in charset table, always set to 0. See http://www.heidisql.com/forum.php?t=4638
2009-12-05 16:03:07 +00:00
Ansgar Becker
4b01d83ed7
My IDE insists on camel case for this component class name.
2009-12-04 21:44:00 +00:00