Commit Graph

2924 Commits

Author SHA1 Message Date
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
1e3fde7234 Give the datagrid-truncation cast a length of 256 in MSSQL, so we don't just get the CAST default of 30 chars. Fixes issue #3186. 2013-05-17 04:08:27 +00:00
Ansgar Becker
056322c488 Expect dots in database and table names, when parsing SHOW GRANTS results. See http://www.heidisql.com/forum.php?t=12640 2013-05-11 05:15:11 +00:00
Ansgar Becker
108c5037aa Turn column default text memo into a TButtonedEdit, and use a right button drop down menu which displays ENUM and SET values. Fixes the ENUM+SET part of issue #1160. 2013-05-10 05:12:41 +00:00
Ansgar Becker
edf71c87fc Use internal flag to remember whether we have a NULL value when copying and pasting in grid fields. Fixes issue #3171. 2013-04-23 07:19:24 +00:00
Ansgar Becker
b04fac85cc Add "Global" column to ListVariables, and highlight values different to their session pendant. 2013-04-17 05:02:36 +00:00
Ansgar Becker
a589e7f9cf Use "times" symbol × instead of the letter x. See http://www.heidisql.com/forum.php?t=12543 2013-04-16 04:08:16 +00:00
Ansgar Becker
3606130311 Block "Empty tables" action if neither dbtree nor dbtab has focus. Fixes issue #3166. 2013-04-15 17:52:35 +00:00
Ansgar Becker
f9f2b82919 Append number of columns and rows in query result tab caption. See http://www.heidisql.com/forum.php?t=12543 2013-04-15 16:57:32 +00:00
Ansgar Becker
a3a42b5d87 Fix repeated column comment in table editor. See http://www.heidisql.com/forum.php?t=12540 2013-04-15 05:54:03 +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
7f87bc7eb2 Try a new approach in TDBConnection.ParseRoutineStructure(). Should fix stripped backslashes from routine body, issue #3107.
* Use SHOW CREATE PROCEDURE/FUNCTION result again, instead of code from IS.ROUTINES
* Remove every known CREATE PROCEDURE/FUNCTION clause and use remaining text as routine body.
* Respect MS SQL function options, taken from http://msdn.microsoft.com/en-us/library/ms186755.aspx
* Introduce helpers.ExtractComment() for usage in ParseRoutineStructure() and ParseTableStructure()
2013-04-11 21:29:44 +00:00
Ansgar Becker
c5ebca5e14 Revert helpers.RemoveComments(), accidentally committed in r4110 2013-04-11 19:52:28 +00:00
Ansgar Becker
a68c51154c MSSQL stored routine editor:
* Extend TAdoDBConnection.GetCreateCode for stored routines
* Extract the relevant routine code in TDBConnection.ParseRoutineStructure
* Match database name against ROUTINES.ROUTINE_CATALOG (not ROUTINE_SCHEMA). See http://www.heidisql.com/forum.php?t=12435 .
2013-04-04 06:40:25 +00:00
Ansgar Becker
451e757846 Auto apply distinct accelerator chars to buttons on TTaskDialog. Fixes issue #3150. 2013-04-03 06:03:05 +00:00
Ansgar Becker
c8e47298a9 Grid export: Remove zero padding to avoid octal => integer conversion in PHP. Fixes issue #3149. 2013-04-01 16:26:53 +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
1bd28f43e6 Ignore errors due to non existent columns in IS.ROUTINES on MSSQL. See http://www.heidisql.com/forum.php?t=12435 2013-03-31 06:19:57 +00:00
Ansgar Becker
ff046336ce Check KeepAskingSetting in MessageDialog() on older Windows versions. Broken since r4302. Fixes issue #3147. 2013-03-28 18:13:58 +00:00
Ansgar Becker
690ac1691c Propose column names from selected table in filter panel. Fixes issue #3140. 2013-03-26 05:40:51 +00:00
Ansgar Becker
1e0463bd08 Return focused tree item in GetFocusedObjects() even if tree is not focused, in cases where database tab does not has focus. Fixes issue #3146. 2013-03-26 05:23:39 +00:00
Ansgar Becker
ca9acecf72 Same as r4304: Fix broken drop down buttons on main toolbar, now that MainFormOnTaskBar is missing. 2013-03-20 22:17:06 +00:00
Ansgar Becker
99f560d55f Cast TEXT columns as VARCHAR in data grid selection, as MSSQL supports only VARCHAR in LEFT() function. Fixes issue #3141. 2013-03-18 05:56:45 +00:00
Ansgar Becker
fda2b22811 Issue #2697: Make database + table tree filter case insensitive. See pm from Martin Bedrač. 2013-03-17 09:51:39 +00:00
Ansgar Becker
46ce43da24 Issue #2496: Revert r4366, do not trim definition of MS SQL views. Instead, let the regex in ParseViewStructure() expect CREATE at any point instead of the very beginning of the code. That way the view definition may contain a BOM or any space at the start. 2013-03-17 06:50:16 +00:00
Ansgar Becker
abf558c0d4 Move code from several action events to new functions GetFocusedObjects and DBTreeClicked. Detect here whether tree or database tab was the one where user clicked the context menu, instead of just checking which of both is focused. See http://www.heidisql.com/forum.php?t=12351 2013-03-16 07:07:14 +00:00
Ansgar Becker
175b76491d Issue #2496: Trim definition of MS SQL VIEWS before passing to ParseViewStructure(), so its regex may expect CREATE at the very beginning. 2013-03-16 05:33:56 +00:00
Ansgar Becker
478117d306 Issue #2496: Remove square brackets per TDBConnection.DeQuoteIdent() 2013-03-15 16:53:12 +00:00
Ansgar Becker
a07d3818f2 Issue #2496: Support square brackets in MSSQL as an alternative way to quote identifiers. 2013-03-15 05:33:42 +00:00
Ansgar Becker
78c6df9b52 Vtree does not focus cell after tab pressing. Do that by hand in TMainForm.AnyGridFocusChanged. Fixes issue #3139. 2013-03-14 06:02:43 +00:00
Ansgar Becker
9e7adec692 Distinct between traditional and simplified Chinese, add zh_TW translated by jeff.tu. 2013-03-09 07:01:33 +00:00
Ansgar Becker
5c0df59bde Complete list of contributers in about dialog 2013-03-08 05:55:33 +00:00
Ansgar Becker
981b746752 Rename local variable to what it stands for. 2013-03-03 17:04:12 +00:00
Ansgar Becker
e60fb7a925 Display number of selected nodes from ListTables in status bar. Fixes issue #3127. 2013-03-03 09:29:33 +00:00
Ansgar Becker
c037dce946 Include database name in GetCreateViewCode(). Fixes issue #3098. 2013-03-03 09:13:25 +00:00
Ansgar Becker
6a2605adf2 Issue #2697: Move pnlTreeFilter to top. 2013-03-03 08:49:38 +00:00
Ansgar Becker
bdae3aabf5 Make use of property writer SetCreateCode, and display errors in SQL log when GetCreateCode failed. 2013-02-28 20:11:26 +00:00
Ansgar Becker
9abb84b38b Indicate previously selected tables with a non-ghosted icon in the tree, while leaving never selected ones ghosted. 2013-02-28 20:07:44 +00:00
Ansgar Becker
b6a1d2ddcc Display timestamp in very right status bar panel when executing a query. See http://www.heidisql.com/forum.php?t=12287 2013-02-28 17:59:57 +00:00
Ansgar Becker
a8c2f0ef82 Issue #2496: Retrieve VIEW definition from IS.VIEWS, so ParseViewStructure() can parse that code. TODO: Support ALTER command. 2013-02-28 05:58:12 +00:00
Ansgar Becker
f852ccdc4f Add right click menu item for clearing data tab filter on current table. Fixes issue #3125. 2013-02-27 18:40:27 +00:00
Ansgar Becker
2ef59d0c94 Fix updating empty binary column value. 2013-02-27 16:56:50 +00:00
Ansgar Becker
6fa32dc9fc Make usage of query history optionally. Fixes issue #3122. 2013-02-26 20:24:33 +00:00
Ansgar Becker
2097a5926d Add missing DATE and TIME datatypes for MS SQL. Fixes issue #2957. 2013-02-25 18:34:54 +00:00
Ansgar Becker
0922e82920 Remove code from TDBQuery.GetKeyColumns which gracefully allows result editing with a partially selected primary key. Fixes issue #2974. 2013-02-25 18:23:31 +00:00
Ansgar Becker
f41f537481 Add missing translation strings for db and table filter 2013-02-25 17:41:59 +00:00
Ansgar Becker
4a68db871c Turn comboDatabaseFilter into a TButtonedEdit, and place a second one besides it, for filtering tables. Fixes issue #2697. 2013-02-25 08:01:02 +00:00
Ansgar Becker
9841bc3f21 Support BIT data type in MS SQL. Fixes issue #2955. 2013-02-24 10:49:33 +00:00
Ansgar Becker
d03ae628cc Reposition default value editor so it's not outside the main form. Fixes issue #2868. 2013-02-24 10:13:26 +00:00