867d656f0b
Fix detection of decimal datatype, so the recently introduced color settings for float's also applies on query results.
2012-02-27 23:15:30 +00:00
af3f590723
Use one color pulldown for setting grid text colors, not one per data type. Use all TDBDatatypeCategory's here, so this introduces a separate color for floats and integers, which were "numeric" before.
2012-02-27 22:16:05 +00:00
1a593a24b4
Revert r3979, move imported mysql_* functions from TDBConnection to a global var scope. Fixes issue #2647 . Also, move MySQL related structures out of dbconnection.pas into mysql_structures.pas and const.inc.
2011-12-24 08:10:41 +00:00
3348cc879a
Support length for TEXT columns in table editor. Looks a bit undecided in MySQL, as MEDIUMTEXT e.g. has no length attribute. However, fixes issue #2505 .
2011-07-23 18:11:44 +00:00
98c872909c
Support virtual columns in MariaDB 5.2. Fixes issue #2451 .
2011-06-10 23:36:38 +00:00
4fbf2c23dd
Introduce experimental MS SQL support
2011-03-29 23:20:21 +00:00
b50659135c
Again, move code for loading libmysql.dll - the right place is now the connection object itself, which loads the library on demand, in SetActive(). This enables the application to start independently of an existent library, raising an error when pressing the connect button. Also, this is a first step towards multi-dbms.
2011-02-17 00:26:53 +00:00
68eea80072
Update MySQL functions array with newer documentation text.
2010-08-27 17:00:49 +00:00
7cd1c7b0ab
Add support for ZEROFILL flag in table editor. Introduces a new checkbox column in the columns list. Fixes issue #570 .
2010-07-04 13:35:54 +00:00
14d39481f1
Again add some more missing keywords to internal list which is used in "Reformat SQL" action besides other places.
2010-05-14 23:04:33 +00:00
ab210d5758
Add CASE and WHEN to list of keywords, so they are uppercased in "Reformat SQL" action.
2010-05-13 08:50:06 +00:00
787005186d
For datatypes which require a length/set parameter in parentheses, we should provide a default length.
2010-02-17 08:35:41 +00:00
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