33 Commits

Author SHA1 Message Date
9080ad7607 No need to use the Wide* version of string functions any longer. 2010-01-15 20:28:48 +00:00
d70ea85786 Ask user if in-memory modifications to table, view, trigger or routine should get saved, this time including a Cancel button, which cancels either
* focusing a different object in database tree and/or
* closing application
TODO: Internal switching to different connection probably needs that too?
2010-01-15 17:13:24 +00:00
52ea8f410a Use Unicode enabled TStringList instead of TWideStringList in all places. Should have no visible effect, apart from a very minor performance optimization, as String reference pointers are handled by Delphi, WideString by Windows. 2010-01-14 19:41:58 +00:00
a4652d39a4 * Fix compiler warnings due to implicit AnsiString to (Unicode)String or vice versa
* Remove workaround for Unicode text to and from clipboard
* Fix writing/reading wrong encoded text into/from registry - no need to use Utf8Encode() any longer
* Implement TMySQLQuery.ColAsAnsi() for cases in which we read binary data.
2010-01-07 00:00:56 +00:00
7d401ffde8 Upgrade to Delphi 2010:
* Removes TNT Unicode controls, which are no longer required. All VCL controls now have native Unicode support.
* Remove Delphi 11 packages, otherwise we would either need to keep TNT or break Unicode
* PngComponents update from Uwe Raabe on http://cc.embarcadero.com/Item/26127
* Adjust auto build process
* Since Delphi 2009, Strings are now UnicodeStrings, not AnsiStrings any longer. Fix a bunch of compiler errors which came along with this change.
TODO: Project should compile but give tons of compiler warnings.
2010-01-05 23:14:33 +00:00
e356cb7ed7 Sanitize all "uses" clauses from unneeded unit references. 2009-12-22 23:19:56 +00:00
e43535ee5b Make regular expression stable against commas in data types, such as DECIMAL(10,7). Keeping compatibility to spaces in data types, like INT UNSIGNED. Fixes issue #1554. 2009-12-22 18:57:20 +00:00
d1cc99e29f Fix staying hourglass mouse cursor when editing a view, routine or trigger. 2009-12-15 22:22:36 +00:00
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
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
8670cdba97 Consistently use "Enter xyz name" as default text for new database objects 2009-12-13 07:44:01 +00:00
3aef5bb5e5 Unify Init() method of database object editors. 2009-12-13 07:32:46 +00:00
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
dc1802fe32 Enable auto completion pulldown in stored routine editor 2009-12-10 19:01:51 +00:00
45fa64fe81 Wrap most queries in a try..except block which may fail with a SQL privilege error. So these places do not raise an exception at user level. Exceptions should only raise in unpredictable error situations. Important for reactivating the MadExcept dialog. 2009-11-22 18:07:53 +00:00
12a8e2ebc5 Implement a more lightweight connection layer, consisting of 2 units in source directory. Breaks threading and window to window communication, which should be reimplemented later. 2009-10-28 00:08:49 +00:00
a9dd16766b Extract params clause without a regexp to make inner regexp more stable against spaces and parentheses in data types. Fixes issue #1400. 2009-10-19 18:07:03 +00:00
c6be8dd575 Implement customizing of shortcuts for all available TActions and SynEditor commands. Fixes issue #536. 2009-09-21 23:12:21 +00:00
886f67cb62 Refactor grid editors unit: Implement a base class with all stuff which was implemented redundant previously and let all other editors descend from this class. Saves ~300 lines of code and makes implementing new editors easier.
Additionally this implements tabbing through edited fields for all grid editors. And it fixes issue #1266, issue #1267, issue #1253, issue #1178, issue #1155, issue #825 and issue #566 .
2009-07-20 23:07:28 +00:00
d26d93aefa Sanitize MySQL structure unit:
* Remove old, unused code (TMysqlIndex, TMysqlField)
* Move relevant code from helpers to mysql_structures unit
* Rename various stuff to more compact names
* Use ordinal values instead of constants for datatypes and their categories
* Replace TGridColumn.IsXYZ boolean's by a new .DatatypeCat property
2009-06-14 19:45:48 +00:00
f01893d08a Experimental: Reintroduce table tab, this time by placing the existing editors for tables, views and routines as TFrames onto that tab. Unfortunately a whole bunch of GUI changes involved here which makes the diff unreadable. Should solve issue #1149 . 2009-06-04 12:56:55 +00:00
a6716d7713 Belongs to issue #1137: Also warn about overwriting a target routine when just the type of routine was switched from proc to func or vice versa, and the name was kept. 2009-05-24 12:16:53 +00:00
4ca5d48993 Fix issue #1137: Stored routine dropped if it already exists 2009-05-24 12:06:53 +00:00
6f411f7ae4 Same as previous commit - take routine type into account. This time for an existence check. 2009-05-24 11:49:15 +00:00
b79ddd2260 A function named F can exist besides a procedure F. If such two routines exist and the editor was called for one of them, the chance was 50% that you edit the wrong routine. 2009-05-24 10:28:43 +00:00
d35b2dbf0f Fix issue #1130: Stored routine lost if no name is given 2009-05-16 06:05:20 +00:00
33894c807f Always quote routine parameters like identifiers, and dequote them if necessairy. Fixes double quoted params. 2009-03-16 19:44:11 +00:00
593adf939c Seems the IN/OUT is not consistently written in uppercase in SHOW CREATE PROCEDURE, probably server version dependent. Anyway, stable now. 2009-03-03 20:30:37 +00:00
b66a62b9f8 Fix issue #1029: Syntax Error on Procedure Routine, destroys PR 2009-03-03 20:24:58 +00:00
7789a1d2fe Fix bug #1030: When creating a Procedure Routine, Tree does not update to show it 2009-03-03 19:22:38 +00:00
4867fdbbff Fix detection of parameters in SHOW CREATE PROCEDURE/FUNCTION 2009-03-02 21:57:49 +00:00
a1f6c628ef Minor Vista font fix for parameter list in routine editor 2009-03-01 07:33:09 +00:00
f20dad8adb Implement stored routine editor, see issue #420
Todo: make routines visible in the database tab so they can be edited.
2009-02-28 22:57:55 +00:00