Ansgar Becker
3ed9ded4d6
Save unicode instead of ansi in "Save memo to textfile" action
2008-06-24 18:29:34 +00:00
rosenfield.albert
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
rosenfield.albert
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
rosenfield.albert
1b2fd65ed2
Fix a weird rendering issue on Windows Vista.
2008-06-24 10:56:33 +00:00
rosenfield.albert
4a0d4ef7db
Rid usage of EmptyStr.
2008-06-24 09:29:26 +00:00
rosenfield.albert
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
Ansgar Becker
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
Ansgar Becker
abd0fab06c
Tweak size column in dbtree to fit to largest numbers.
2008-06-23 23:14:30 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
2d59e35e38
Fix bug #584 "HeidiSQL GUI : Create New User Error(s)"
2008-06-23 19:16:45 +00:00
rosenfield.albert
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
rosenfield.albert
167f7529ad
Use some other enumerations for colors.
2008-06-23 17:58:03 +00:00
rosenfield.albert
83025528bd
Pass data_length and index_length through FieldContent() in LoadDatabaseProperties(). Probably "fixes" issue #554 .
2008-06-23 17:48:46 +00:00
rosenfield.albert
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
rosenfield.albert
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
rosenfield.albert
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
rosenfield.albert
72586d0791
Follow-up to previous revision: missing name changes.
2008-06-23 11:43:05 +00:00
rosenfield.albert
59e24a828f
Improve object names and captions.
2008-06-23 11:21:04 +00:00
Ansgar Becker
faf1c73da9
Fix compiler error, caused by accidently left testing line in last commit.
2008-06-22 17:48:55 +00:00
Ansgar Becker
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
Ansgar Becker
fcdefa1f7a
Fix bug #575 "Incorrect table size in tree"
2008-06-21 17:56:27 +00:00
Ansgar Becker
e5e837aa2e
Fix bug #571 "New column at end of table"
2008-06-21 10:39:32 +00:00
Ansgar Becker
ed0155e29e
Fullfull rfe #555 "Add size of tables in database tree"
2008-06-21 10:18:30 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
de107dac5d
Fix bug #558 "Table node "TABLENAME" not found in tree."
2008-06-20 19:04:24 +00:00
Ansgar Becker
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
Ansgar Becker
7c833b3266
Fix bug #556 "Create database: Reset TEdit color to default if database name is empty"
2008-06-20 18:10:51 +00:00
Ansgar Becker
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
Ansgar Becker
8b898a4a71
Make runsqlfile dialog unicode safe.
2008-06-19 20:01:42 +00:00
Ansgar Becker
0dc750c1a7
Fix ReadTextfileChunk:
...
- Extend ChunkSize parameter to fit with Stream.Size
- Avoid exceeding file end if the passed ChunkSize is higher than the length of the left data
2008-06-19 19:38:39 +00:00
Ansgar Becker
58230fea56
Rename ReadUnicodeFile to ReadTextfile and split it into 3 different procedures:
...
- OpenTextfile
- ReadTextfileChunk
- ReadTextfile
Enables us to use the unicode detection in places where we need to read a file chunkwise. (e.g. the runsqlfile unit)
TODO: Fix UTF-8 detection, misdetected as ANSI currently.
2008-06-19 19:08:54 +00:00
Ansgar Becker
4cd5743980
Revert r1457 for the benefit of updatable views. Rely on the server responding with an error if the view is not updatable.
2008-06-19 16:53:14 +00:00
Ansgar Becker
65987ac2ad
Optimize SynUnicode unit away from the uses clause by using the new unicode file reader/writer in helpers instead of SynEdit functions. Makes class renaming for TSynWideStringList (r1488) superflous.
2008-06-17 22:40:20 +00:00
Ansgar Becker
b2bf8a4828
Add helper "ReadUnicodeFile"
2008-06-17 22:27:13 +00:00
Ansgar Becker
f7ad90cd40
Add helper "SaveUnicodeFile"
2008-06-17 19:16:11 +00:00
Ansgar Becker
dced2df45e
Make query execution unicode safe, mainly for a bunch of procedures and functions in Heidi itself plus various neighbours in Zeos.
2008-06-17 17:06:01 +00:00
Ansgar Becker
80c5d9cdd4
Get rid of secondary, confusing checkbox in preferences window for limiting data rows.
2008-06-17 13:21:17 +00:00
rosenfield.albert
03ca9c92f4
Kill all users of StrUtils.
2008-06-17 12:44:17 +00:00
rosenfield.albert
c15dcc0c3a
Convert callers of parsesql to make the code compile. Note the TSynWideStringList nastiness in childwin, is there a proper way of doing this in Delphi?
2008-06-17 11:57:46 +00:00
rosenfield.albert
be831f11b7
Convert parsesql to use wide strings and characters.
2008-06-17 11:56:37 +00:00
rosenfield.albert
a2609eee22
Fix piss-annoying exception that keeps popping up in debug mode.
2008-06-16 20:22:46 +00:00
Ansgar Becker
a9e4006b2d
Fix bug #535
2008-06-16 16:29:52 +00:00
Ansgar Becker
879916b2fc
Fix bug #346 "Automatcally calculate data limit.. doesn't work"
2008-06-16 08:54:10 +00:00
Ansgar Becker
c1128f29bb
Make ButtonCloseClick procedure in "About" window superflous
2008-06-15 17:54:34 +00:00