Ansgar Becker
821c6cb4db
Fix various compiler warnings and notices
2013-11-01 06:17:52 +00:00
Ansgar Becker
5b3c8b92c7
Include schema name in ALTER TABLE query on table editor.
2013-07-24 04:18:49 +00:00
Ansgar Becker
3007a5e860
Send column default value through UnescapeString and then to EscapeString, and let UnescapeString remove double backslashes. Fixes issue #3283 .
2013-07-15 05:00:07 +00:00
Ansgar Becker
344acd8d20
Limit test query to return one single row, not all rows. Fixes issue #3271 .
2013-07-08 16:24:40 +00:00
Ansgar Becker
b77b990714
Issue #3212 : Filter objects by schemata when gathering columns from IS.COLUMNS in TDBConnection.GetCreateCode, so we don't get columns from objects with the same name in another schema.
2013-06-26 04:11:46 +00:00
Ansgar Becker
8e02fa9fee
Move helpers:GetIndexIcon to TTableKey.GetImageIndex
2013-06-25 04:15:11 +00:00
Ansgar Becker
af01a2b21b
Include ROW_FORMAT in CREATE code. Fixes issue #3243 .
2013-06-18 17:30:31 +00:00
Ansgar Becker
819d3ed85c
Refresh CREATE CODE after pressing Save button on table editor, so we don't display no longer present indexes, and probably more. Fixes issue #3198 .
2013-06-12 04:16:34 +00:00
Ansgar Becker
8d13e84ed4
Remove default length of new INT columns in table editor. Fixes issue #3226 .
2013-06-09 05:19:46 +00:00
Ansgar Becker
550a139dac
Support default values of BIT columns in table editor and SQL export. Fixes issue #2544 .
2013-05-19 04:30:14 +00:00
Ansgar Becker
e42cb467fc
Fix wrong offset in db.table string when checking for foreign key match. Fixes issue #3160 .
2013-04-14 05:21:04 +00:00
Ansgar Becker
002e9bc544
Accept column rename when it has the same name as a deleted column. Fixes issue #3137 .
2013-03-31 06:45:24 +00:00
Ansgar Becker
ae76fcde28
Mark table key as modified after editing its contained column names, so such changes get posted to the server when clicking "Save". Fixes issue #3144 .
2013-03-31 06:36:15 +00:00
Ansgar Becker
6ba892c534
Issue #400 : Compare data types and unsigned flags of source and reference columns, when leaving foreign column editor. Introduce a more helpful error message when these do not match, as a replacement for the servers poor message "Foreign key constraint is incorrectly formed".
2013-02-06 19:24:21 +00:00
Ansgar Becker
d517dc2a21
Hide non-InnoDB tables in foreign key editor. See http://www.heidisql.com/forum.php?t=11816
2013-02-04 18:40:34 +00:00
Ansgar Becker
e25ea34794
No need to cast for TTableKey.
2012-12-26 07:34:16 +00:00
Ansgar Becker
13cff8c63c
Silently auto-rename index to "PRIMARY" when index type gets set to "PRIMARY". Fixes issue #3031 .
2012-12-26 07:33:21 +00:00
Ansgar Becker
39926ac729
Remove properties FFullDatatype, Connection and Datatype from TBaseGridEditorLink, for the benefit of a new property "TableColumn", which has everything we need. Using this TableColumn property, the data grid editors can now read the LengthSet attribute of the source column, which we need to read + write the microseconds part of DateTime values. Add some additional code to make editing microseconds peachy. Fixes the second part of issue #3003 .
2012-12-24 13:12:25 +00:00
Ansgar Becker
e12b4e652f
Allow modification of index column name per grid pulldown editor, in table editor. Fixes issue #3059 .
2012-12-17 16:25:43 +00:00
Ansgar Becker
9d8b4cd83a
Make more inline strings translatable.
2012-11-28 23:27:31 +00:00
Ansgar Becker
14006cc9dc
Do not use comment from selected column as a default for a new column. Fixes issue #3009 .
2012-11-26 05:52:44 +00:00
Ansgar Becker
f96288fce9
Translate string variables and literals in .pas files. TODO: translate constants.
2012-11-26 05:44:01 +00:00
Ansgar Becker
ca1d94c87b
Issue #557 : Include gnugettext.pas from https://dxgettext.svn.sourceforge.net/svnroot/dxgettext/trunk/dxgettext/sample/ . And add basic code to all FormCreate events to translate their components in the future.
2012-11-10 14:28:44 +00:00
Ansgar Becker
c0610ef70d
Add support for renaming tables in MS SQL. Fixes issue #2981 .
2012-10-04 19:04:05 +00:00
Ansgar Becker
3ff4bba55c
Enhance MS SQL compatibility in table editor:
...
* Introduce specifities for ADD/CHANGE column clauses. Fixes issue #2532 .
* Remove unsupported DROP DEFAULT for MS SQL
* Remove unsupported LENGTH/SET attribute for relevant data types
2012-09-29 07:43:00 +00:00
Ansgar Becker
f96f4de2b7
Prefer displaying checkboxes in a disabled style, over displaying no checkbox at all, for not applicable table attributes
2012-09-08 06:29:10 +00:00
Ansgar Becker
04f65eea51
Do not allow NULL, and force NOT NULL, on primary key columns. See http://www.heidisql.com/forum.php?t=11156
2012-09-08 05:57:10 +00:00
Ansgar Becker
90ab0b6cf1
Refactor logic for reading and writing application and session settings:
...
* Introduce TAppSettings, created in dpr file
* Implement read and write methods, and replace callers of GetRegValue and MainReg.WriteInt/... with these
* Optimize read and write methods for avoiding redundant accesses to registry
* Auto-remove stored default settings from registry to avoid registry spam
* Replace synced MainForm.pref* variables with TAppSettings.Read* calls
* Move SetLocales call to dpr file
* Move MainForm.FDirname* variables to appropriate methods in helpers.pas
* Implement TQueryHistory.Create(SessionPath), reading its items within constructor
2012-08-19 10:55:08 +00:00
Ansgar Becker
5e8bf8306a
Remove unused unit inclusions, detected by CNPack/Uses cleaner
2012-05-01 08:34:12 +00:00
Ansgar Becker
276797ed52
Code cosmetic: Move MODIFIEDFLAG to const.inc
2012-04-26 04:44:36 +00:00
Ansgar Becker
0d0fad6745
SelectNode triggers a potentially set OnFocusChanged event, benefit from that logic in some places where I used to assign Focusnode := xyz.
2012-03-13 22:21:53 +00:00
Ansgar Becker
4de1b3012d
Move code from GetSQLSplitMarkers and SplitSQL into TSQLBatch class. Enables me to access details like string size of batch. Preparation for query history.
2012-03-06 21:52:57 +00:00
Ansgar Becker
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
Ansgar Becker
d521a5eb2e
End grid cell editor in foreign key list if current tab changes. Fixes issue #2740 .
2012-02-24 20:28:58 +00:00
Ansgar Becker
b5e28f43db
Refreshing datagrid result while connection is cut triggers SelectedTableColumns to reset implicitly in ConnectionReady > DBTreeFocusChanged > ParseSelectedTableStructure. Add an explicit Connection.Ping(true) before firing any query in DatagridBeforePaint, and merge code from ParseSelectedTableStructure into DBTreeFocusChanges. Fixes issue #2644 .
2011-12-14 21:11:51 +00:00
Ansgar Becker
a69041d17d
Add support for Windows 7 task button progress. Unify all callers of ProgressBarStatus in a set of 5 functions in main unit instead of helpers, as this is where the progress bar is placed and also we need the handle of the main window.
2011-11-08 22:27:52 +00:00
Ansgar Becker
deb75f5c6a
Revert r3938, and add backticks around identifiers again, so ParseTableStructure can detect column for "copy columns" feature. Fixes issue #2540 .
2011-10-01 06:58:33 +00:00
Ansgar Becker
85457c45b4
Delete node so treeIndexes.Repaint does not expect old children in moved up node. Todo: Bind FKeys to tree nodes if that's possible with deleted keys. Fixes issue #2557 .
2011-10-01 06:28:16 +00:00
Ansgar Becker
94c1ecc81a
Remove redundant backticks in table editors CREATE and ALTER code. See http://www.heidisql.com/forum.php?t=9056
2011-08-24 05:50:51 +00:00
Ansgar Becker
0bc9030acd
Allow NULL when selecting NULL as default value. See http://www.heidisql.com/forum.php?t=8790
2011-06-27 21:34:53 +00:00
Ansgar Becker
98c872909c
Support virtual columns in MariaDB 5.2. Fixes issue #2451 .
2011-06-10 23:36:38 +00:00
Ansgar Becker
c8cfc39c99
Avoid AVs by referring to DBObject.Connection instead of MainForm.ActiveConnection, which is nil for milliseconds when the tree focused node changes. Fixes issue #2418 .
2011-05-30 17:21:25 +00:00
Ansgar Becker
2e3c71e443
Disable "Remove index" button after click on "clear". See http://www.heidisql.com/forum.php?t=8610
2011-05-29 15:26:58 +00:00
Ansgar Becker
80634bd952
Avoid calling Mainform.ActiveDatabase when we have TDBObject.Connection.Database. Probably fixes issue #2418 .
2011-05-27 17:37:18 +00:00
Ansgar Becker
2d548b5ef6
Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425 .
2011-05-27 04:48:21 +00:00
Ansgar Becker
478c0306c7
Use modern TaskMessageDlg as a replacement for MessageDlg where appropriate.
2011-05-26 06:08:19 +00:00
Ansgar Becker
592b2d98b0
Disable save button if 0 columns. Fixes issue #2411 .
2011-05-14 13:55:27 +00:00
Ansgar Becker
52c57c84e3
Fix follow up problems introduced in r3795: DROP DEFAULT on renamed column took the old column name, and the old table name is used also when it was renamed. Revert r3795, move DROP DEFAULT clauses before the main ALTER query, and introduce a .OldDataType property on TTableColumn to check if that can have a default value.
2011-04-30 05:07:50 +00:00
Ansgar Becker
90a7cd1941
Drop default value *after* data type was altered, to avoid "can't have a default value". Fixes issue #2361 .
2011-04-23 08:05:14 +00:00
Ansgar Becker
cb0e54068c
Remove redundant functions IsMSSQL and IsMySQL.
2011-04-19 23:07:52 +00:00