441 Commits

Author SHA1 Message Date
51c27f7a27 * Silence various compiler warnings about non initialized variables.
* Globally turn off platform warnings
2013-07-16 04:45:28 +00:00
8e02fa9fee Move helpers:GetIndexIcon to TTableKey.GetImageIndex 2013-06-25 04:15:11 +00:00
88eb857346 Add preference option and logic for alternating grid row background colors. Fixes issue #2820. 2013-06-17 18:01:33 +00:00
8b36ccdce3 Display values in grid columns which the user explicitly sets to be a UNIX timestamp in date/time format. Fixes issue #3215. 2013-06-08 04:27:48 +00:00
99f62c4324 Process placeholders in filename also in grid export dialog. Provide a list of valid placeholders below the recent files pulldown menu. See http://www.heidisql.com/forum.php?t=12506 2013-06-01 05:45:17 +00:00
50e257de65 Apply system font to forms, not only Segeo on Vista and above. Fixes issue #3204. 2013-05-30 06:13:05 +00:00
3569ee8d94 Do not restore previous state of checkbox options "Drop database" and "Drop tables", leave them off when calling the export sql dialog. Fixes issue #3197. 2013-05-25 05:45:25 +00:00
550a139dac Support default values of BIT columns in table editor and SQL export. Fixes issue #2544. 2013-05-19 04:30:14 +00:00
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
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
c5ebca5e14 Revert helpers.RemoveComments(), accidentally committed in r4110 2013-04-11 19:52:28 +00:00
451e757846 Auto apply distinct accelerator chars to buttons on TTaskDialog. Fixes issue #3150. 2013-04-03 06:03:05 +00:00
c8e47298a9 Grid export: Remove zero padding to avoid octal => integer conversion in PHP. Fixes issue #3149. 2013-04-01 16:26:53 +00:00
ff046336ce Check KeepAskingSetting in MessageDialog() on older Windows versions. Broken since r4302. Fixes issue #3147. 2013-03-28 18:13:58 +00:00
6fa32dc9fc Make usage of query history optionally. Fixes issue #3122. 2013-02-26 20:24:33 +00:00
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
342f1b37d7 Fix setting for name of selected database, which must be a session setting, not a global one. See http://www.heidisql.com/forum.php?t=12101 2013-02-13 07:51:53 +00:00
e1c4f14dbc Make foreign values drop down optionally. See http://www.heidisql.com/forum.php?t=11816 2013-02-04 18:30:35 +00:00
88b3666bf1 Support search/replace in data and result grids. Fixes issue #2979. 2013-01-15 20:46:41 +00:00
4fd920906c Introduce "KeepAskingSetting" parameter to MessageDialog(), which activates a verification checkbox left besides the dialog buttons. Use that when confirming to close a query tab, so the user can disable the dialog within the dialog itself, without the need to disable this setting in Preferences > SQL. Fixes issue #3065, which was broken since r4283. 2012-12-31 11:03:16 +00:00
551864a06c Ensure we do not send an empty query, if a single query is larger than the max_allowed_packet setting. This way, we most probably get disconnected anyway, but that clearly leaves responsibility to the user to make the query smaller. 2012-12-31 10:33:32 +00:00
65d7e2ffab Read and write snippet files in a subdirectory of the application directory when in portable mode. Fixes issue #2980. 2012-12-31 10:30:33 +00:00
39b69226e1 Group tree options in popup submenu, and introduce new option "Auto expand on click". Fixes issue #3061. 2012-12-26 08:14:10 +00:00
eb1500efcf Turn asSessionFolder into a session setting, so it gets stored in a session, not as a global setting. Likely fixes issue #2956. 2012-12-09 10:36:29 +00:00
fcc6ffee5b Follow up to r4266, issue #3051: Fix selection of the right routine type, based on the itemindex, not the combo box text. 2012-12-09 09:42:19 +00:00
a77a55da18 Optimize TAppSettings.SetSessionPath to only fire PrepareRegistry if required. 2012-12-04 20:40:44 +00:00
cea47f7087 Decide to store settings value even when it's equal to the default value we hold in TAppSetting.Default[Int|String|Bool]. This is important when AppSettings.Read() gets a default value passed, e.g. SynSQLSyn1.Attribute[i].IntegerStyle. Fixes issue #3032. 2012-12-04 20:35:51 +00:00
68b1c957f1 Translate error message footer hint 2012-12-03 18:27:59 +00:00
ce263681d9 Even if user runs Vista or above, he may have deactivated themes. Check that before assuming TTaskDialog to be available. Fixes issue #3043. 2012-12-02 08:59:58 +00:00
cc8b0bc202 Support hyperlinks in MessageDialogs, and add a footer with a Google search link to error dialogs. 2012-11-30 13:27:57 +00:00
911402d830 Introduce translatable message/error/confirmation dialogs. 2012-11-29 22:45:51 +00:00
645a9f3c7f Make message strings from const.inc translatable 2012-11-29 06:15:44 +00:00
9d8b4cd83a Make more inline strings translatable. 2012-11-28 23:27:31 +00:00
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +00:00
caaaaedc11 Workaround to avoid exceptions in FindNode() when an Int64 from TDBQuery.RecNo comes in and gets compared to the Cardinal typed VTree.Node.Index. 2012-11-21 05:10:25 +00:00
b6a18114f4 Fix access violation when using ASCIIencoding, by turning it from a SingleTon into a new instance each time we call GetEncodingByName. Probably introduces a memory leak. The encoding object is freed when using in a TStringStream context which is freed after usage. See exportgrid unit. 2012-11-17 08:48:21 +00:00
783a9d146e Issue #557: Override automatic language detection via registry setting "Language". 2012-11-13 22:06:07 +00:00
6b04fc0493 Prefer codepage 437 over TEncoding.ASCII. See PM from Markus Gnam. 2012-11-07 19:07:47 +00:00
583a8350b8 Install Ararat Synapse library (r169 from trunk), as a preparation for HTTP tunnel implementation. See issue #1405. 2012-10-21 12:17:43 +00:00
4151f0d82a Text import: Uncheck critical "Truncate table" checkbox, to avoid accidental data removal. See http://www.heidisql.com/forum.php?t=11260 2012-09-30 12:20:19 +00:00
8b51f19ed0 Fix AV when displaying data of a table which has 0 rows. Mainly caused by range differences of VT.RootNodeCount (Cardinal) and TDBQuery.RecordCount (Int64). 2012-09-30 12:07:52 +00:00
fea0e8e194 Code cosmetic in initialization code:
* Move TMainForm.ParseCommandLineParameters to helpers:ParseCommandLine
* Modify ParseCommandLine to work without private statics FCmdlineFilenames and FCmdlineConnectionParams
* Move code from helpers:setLocales to dpr file
* Rename TMainForm.Startup to TMainForm.AfterFormCreate
* Destroy AppSettings explicitly in single instance mode
2012-09-16 16:55:53 +00:00
2963bff020 Turn asRecentFilter into a session setting and define its value so it can handle the FormatName parameter. See http://www.heidisql.com/forum.php?t=11096 2012-09-02 08:46:30 +00:00
4eb450ce69 Fix confusion in save-as-dialog. Fixes issue #2921. 2012-08-31 13:51:13 +00:00
694a99f13a Tweak grid export dialog with some minor enhancements:
- Auto select ANSI encoding for Excel output, see http://en.wikipedia.org/wiki/Comma-separated_values#Application_support
- Auto modify file extension when selecting format
- Support "Include query" checkbox in XML format, see http://www.heidisql.com/forum.php?t=10853#p11082
- Imitate mysqldump's XML style, see http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html#option_mysqldump_xml
2012-08-31 09:54:01 +00:00
8d73413de8 Fix and enhance handling of multiple statements and multiple results:
* TMySQLConnection.Query did not process further results if the first one is a non-result. Instead, it disconnected you as the required mysql_store_result() was never called. Fixed now. Should fix the error described here: http://www.heidisql.com/forum.php?t=11049
* Cache result of SHOW VARIABLES, and introduce a MaxAllowedPacket function, which benefits from that cache
* Do not limit the number of statements in "batch in one go" mode, only limit its size. This is to minimize the number of sent packets for a huge numbers of very small queries.
2012-08-27 22:56:12 +00:00
9de0a2fc0f Add "Include query" checkbox option onto grid export dialog. See http://www.heidisql.com/forum.php?t=10853 2012-08-26 12:47:05 +00:00
2ffedb7721 Add "Include auto increment column" checkbox option onto grid export dialog. Fixes issue #2864. 2012-08-25 13:38:04 +00:00
491a6298d1 Introduce property LogToFile in TMainForm, which is synced with the registry setting asLogToFile. Fixes issue #2936. 2012-08-23 23:16:36 +00:00
675530ca74 TAppSettings.ValueExists respects SessionPath, which is not used in GetSessionNames, so prefer FRegistry.ValueExists here. See http://www.heidisql.com/forum.php?t=11020 2012-08-21 20:51:43 +00:00