20 Commits

Author SHA1 Message Date
2e00bdf37d Add SOME keyword to keyword highlighter. Fixes issue #1606 2010-01-16 14:42:18 +00:00
9080ad7607 No need to use the Wide* version of string functions any longer. 2010-01-15 20:28:48 +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
b09e8a6816 Extend list of known MySQL keywords with those in http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html, but not in our own list. Fixes issue #1600. 2010-01-13 19:45:53 +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
4d7ed2303c Gracefully be case insensitive in GetDatatypeByName() so we can also pass lower case strings. 2009-12-09 21:05:39 +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
45eba2139c Examine query error messages for "(errno: 123)" and add the more meaningful message returned by perror.exe . Adds a static error message list from my local 5.1.22 server. This is especially helpful in the foreign key editor, where any InnoDB error seems to be the more cryptic one by default, while there are lots of possible error causes. See issue #400. 2009-08-23 22:53:52 +00:00
e2b252a906 Implement a new datatype selector for the table editor, including groups, datatype colors and help hints. Fixes issue #1214 and issue #1165 . 2009-07-07 23:31:16 +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
7f32b33505 Issue #436: Implement a new table editor dialog. Nukes both create + alter table dialogs. 2009-05-12 22:24:09 +00:00
2b873d94cb Fix compiler error, broken in previous commit 2009-01-02 14:41:13 +00:00
886094d848 Update function hints with newer descriptions, fetched from the mysql documentation. 2009-01-02 14:36:20 +00:00
3ab4029776 MEDIUMTEXT is wider than TEXT so list it last. 2008-09-01 22:01:22 +00:00
6daf4b3f76 Fix most remaining Unicode unsafe GUI controls. 2008-08-25 20:24:00 +00:00
dedc3d92b1 Fix fieldeditor and neighbours for Unicode table- and columnnames 2008-08-19 22:48:05 +00:00
777061c1ac Adapt a slightly more natural group ordering, and at the same time show which of the types (now cropping up at the start of the list) are nonstandard and are probably best avoided.
(Except for the über-performance freaks that gives a shit, see also:
http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster)
2008-06-23 16:15:09 +00:00
eb94d80223 * Add definition of column type 'groups' to mysql_structures.
* Enhance the TComboBox used in fieldeditor to support option groups via owner drawing.
 * Add some ridiculously dumb functions to translate between the dropdown's index and (non-group) item index.
 * Accomplishes rfe #577.
2008-06-23 15:39:36 +00:00
a6a53de8b1 Fix bug #1872643 "Interface: UNSUPPORTED default value for GEOMETRY field"
Error message: <spatial data type> can't have a default value.
Solution:  I tried every type of this family data type and found that they needs the flag HasDefault as False.
2008-01-23 21:22:00 +00:00
f085be1ca8 Rename mysql.pas and it's helper file installer_function_list_generator.php so their purpose is more clearer to newbies. 2007-10-23 18:49:14 +00:00