894 Commits

Author SHA1 Message Date
f296b1730c Move heading panels from above grids to tab captions (hostname, database, table) and status bar (uptime, MySQL version). Makes space for coming GUI changes. 2008-06-26 09:49:17 +00:00
1e3102d0b6 Fix warn colors in table name TEdit of CREATE TABLE dialog if table name is empty (2nd report in issue #556) 2008-06-26 05:46:56 +00:00
71ec2f9f49 Replace DbMemo with TntDbMemo. 2008-06-25 14:29:21 +00:00
f148664018 * Zeos: Make SetFieldData() public to provide a way to poke NULL into a field.
* Heidi: Use above to set field to NULL when requested by user.
2008-06-25 13:47:15 +00:00
c40b8d680b Bugfix: Setting a field to an empty string causes a WriteBuffer(nil, 0) which in turn apparently causes Memory to be nil. Therefore, interpret this as empty string rather than NULL. Fixes issue #316. 2008-06-25 13:05:16 +00:00
ca940f56a2 Bugfix: Missing use of Wide version method. Might fix issue #540. 2008-06-25 13:02:05 +00:00
d0fd412c03 * Bugfix: Correct cast when retrieving wide data from buffer is PWideChar.
* Bugfix: FBlobSize is in bytes, SetString expects a character count.
2008-06-25 13:00:04 +00:00
8f5cc1ac3c Bugfix: IsEmpty means NULL. 2008-06-25 10:06:43 +00:00
5c7631796f Add specific modes supposed to include various brokenness in mysqldump. Hopefully we won't have to discuss whether to account for a specific brokenness in mysqldump ever again. I almost couldn't be happier if MySQL actually fixed their bugs ;-). Fixes issue #537. 2008-06-25 05:46:19 +00:00
5c1c61af8b Work around a bug in MySQL server; NO_BACKSLASH_ESCAPES is not included in ANSI mode, even though according to the manual:
"NO_BACKSLASH_ESCAPES enables an SQL standard compatibility mode, where backslash is 
not considered a special character."
2008-06-25 04:31:14 +00:00
d137917930 Add code page 936 <-> gbk. 2008-06-25 04:23:00 +00:00
173aca5009 Make sstr() unicode compliant to fix bug #313 "Run SQL file dialog fails for German umlauts in file" 2008-06-24 20:22:00 +00:00
ab790b4072 Bring back SynUnicode to the uses clause to fix SynMemoQueryDropFiles . Files dropped were just not loaded with no error. Use namespace/unit prefixing in one place to avoid a compiler error. 2008-06-24 18:43:20 +00:00
3ed9ded4d6 Save unicode instead of ansi in "Save memo to textfile" action 2008-06-24 18:29:34 +00:00
7219960e50 Get rid of some implicit WideString -> string conversions (annoying!). Still missing: FormInsertStatement(), FormDeleteStatement() and FormUpdateStatement(). 2008-06-24 17:50:06 +00:00
9e70c359ed Bugfix: Make it possible to use empty string ('') as a default value for columns. Fixes issue #326. 2008-06-24 11:25:58 +00:00
9d13267e41 Bugfix: Make it possible to tell "no default value" apart from "default value is NULL" in the table view. 2008-06-24 11:24:36 +00:00
1b2fd65ed2 Fix a weird rendering issue on Windows Vista. 2008-06-24 10:56:33 +00:00
ef0be0be5b Bugfix: send prepared statements in widestring to MySQL. 2008-06-24 10:00:02 +00:00
4a0d4ef7db Rid usage of EmptyStr. 2008-06-24 09:29:26 +00:00
6ec59d8667 Bugfix: fix regression from r1491. 2008-06-24 09:27:45 +00:00
f64626f152 Bugfix: fix regression; up-key and mousewheel-up were broken in r1512 for the data type dropdown. 2008-06-24 09:22:53 +00:00
94dd599f5f Fix annoying alphabetical sorting in list of available fields in the index editor. For columns it's very normal to have them in the same order as they're defined in the table structure. 2008-06-23 23:17:57 +00:00
abd0fab06c Tweak size column in dbtree to fit to largest numbers. 2008-06-23 23:14:30 +00:00
2be5153edf Convert old style TDBNavigator to standard toolbuttons, use PNG icons for them and keep only needed (not redundant) buttons: first, last, insert, delete, post. Fixes bug #572 which was caused by r1401. 2008-06-23 23:09:20 +00:00
758507d87a Show db navigator as soon as a table was selected, also when tabTable is active. Passing the sender component to viewdata() in all situations so we can check that for first time loading from within the table tab. 2008-06-23 22:31:42 +00:00
8e3effd849 Follow up to previous commit:
- Now that auto limiting doesn't touch EditLimitEnd if it's not too high, the initial limit (50) setting seems to low. Increase it to 5000.
- Only touch EditLimitEnd in auto limiting, set it to EditLimitStart + GetCalculatedLimit, always leave EditLimitStart as it is.
2008-06-23 21:42:26 +00:00
b7d6e07481 Do the best to fix bug #282 - not to touch a user input in EditLimitEnd + EditLimitStart if GetCalculatedLimit says we must apply a limit. 2008-06-23 20:26:14 +00:00
1bd1bb8a6e Remove preference option to select whether auto limiting should be applied or not, for the benefit of consistency and usability. See bug #282 which complains about the limit not being remembered. This is still the case for large tables now, but GetCalculatedLimit is more a safety check to avoid huge net loads than it wants to annoy the user. A even better compromise could be not to touch the limit number in the GUI if its value is lower than GetCalculatedLimit. 2008-06-23 20:15:37 +00:00
efa71f50bb Implement automatic closing of data sorting + column selection dialogs when clicking elsewhere by catching the FormDeactivate event. (rfe #562 and rfe #579) 2008-06-23 19:49:11 +00:00
2d59e35e38 Fix bug #584 "HeidiSQL GUI : Create New User Error(s)" 2008-06-23 19:16:45 +00:00
cf7859a131 Now with even more effort to use the right names amongst a myriad of ill-explained and logically incoherent bundles of random color enumeration. 2008-06-23 18:06:54 +00:00
167f7529ad Use some other enumerations for colors. 2008-06-23 17:58:03 +00:00
83025528bd Pass data_length and index_length through FieldContent() in LoadDatabaseProperties(). Probably "fixes" issue #554. 2008-06-23 17:48:46 +00:00
ea352df61d Bugfix: removing a privilege did not work for the special case where UPDATE ... ON DUPE KEY instead of INSERT has to be used (for the server-level privileges jumbled together with lots of irrelevant stuff we don't want to touch in mysql.user). 2008-06-23 17:06:06 +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
72586d0791 Follow-up to previous revision: missing name changes. 2008-06-23 11:43:05 +00:00
59e24a828f Improve object names and captions. 2008-06-23 11:21:04 +00:00
faf1c73da9 Fix compiler error, caused by accidently left testing line in last commit. 2008-06-22 17:48:55 +00:00
3a1d54da86 Fix bug #574 "UTF-8 textfiles without BOM are read as ANSI files". Split out character set detection to GetFileCharset and leave TStream creating in OpenTextFile(). 2008-06-22 17:45:11 +00:00
fcdefa1f7a Fix bug #575 "Incorrect table size in tree" 2008-06-21 17:56:27 +00:00
e5e837aa2e Fix bug #571 "New column at end of table" 2008-06-21 10:39:32 +00:00
ed0155e29e Fullfull rfe #555 "Add size of tables in database tree" 2008-06-21 10:18:30 +00:00
dc0e9c0f71 Fix AV on FormClose when DatabasesWanted is used. Databases := DatabasesWanted doesn't create a copy of DatabasesWanted, only a reference! Then, after freeing DatabasesWanted, FreeAndNil(Databases) lead to the AV. 2008-06-20 20:18:16 +00:00
81a21398f9 Fix cosmetic bug: If a user clicks in the empty space below the column names in ListColumns, the previously selected node is unselected but not unfocused (the dotted rectangle is kept). To be consistent, certain menu items have to be DISabled in that case, and only ENabled if a node is focused AND selected. Fixes doubleclicks in ListColumns calling the fieldeditor in "update column" mode, which should be rather (and is now) the "add column" mode for creating a new column. 2008-06-20 19:18:40 +00:00
de107dac5d Fix bug #558 "Table node "TABLENAME" not found in tree." 2008-06-20 19:04:24 +00:00
586346b3a3 Fix bug #560 Table tab does not activate when reselecting "Properties" of the same table in "Database" 2008-06-20 18:47:14 +00:00
7c833b3266 Fix bug #556 "Create database: Reset TEdit color to default if database name is empty" 2008-06-20 18:10:51 +00:00
264693f6b2 Implement making a column the last one in a table and fix issue #564 . There is no LAST command for ALTER TABLE CHANGE col, such as there is FIRST, so it has to be done more manually by generating an "AFTER [lastcol which is not the col to be edited]" 2008-06-20 18:02:42 +00:00