59 Commits

Author SHA1 Message Date
d75ae736ea Make Markdown export code compatible to the parser on gitlab.com, by using 3 dashes instead of 1, below header columns. See http://www.heidisql.com/forum.php?t=22991 2016-12-25 11:35:37 +00:00
795e5de4c2 Remove per-row comment in PHP array grid export, which blows up the result. See http://www.heidisql.com/forum.php?t=22749#p22798 2016-12-03 09:43:01 +00:00
cdea0923b3 Don't encode html entities but escape quotes in JSON grid export. See http://www.heidisql.com/forum.php?t=22747#p22783 2016-11-26 15:10:55 +00:00
462dcba8de Escape quotes and stuff in JSON keys and values. See http://www.heidisql.com/forum.php?t=22747 2016-11-24 18:01:58 +00:00
208723e7bb Use double quotes for PHP values when exporting a PHP array from a grid. See http://www.heidisql.com/forum.php?t=22749 2016-11-24 17:52:46 +00:00
b5de17c15d Wrap grid export code in a try/except block, so we can catch a potential "Cannot determine name of table" error, occurring while trying to get the WHERE clause for DELETEs. See http://www.heidisql.com/forum.php?t=21168 2016-04-28 18:13:47 +00:00
24208cc039 Use b'' format only for BIT columns in MySQL only. See http://www.heidisql.com/forum.php?t=20333 2016-04-27 17:55:31 +00:00
347ed4880e Add "SQL DELETEs/INSERTs" to grid export formats. See http://www.heidisql.com/forum.php?t=20929 2016-04-03 09:45:04 +00:00
71144a9aec Escape and quote binary strings in grid export if "View binary data as text" button is active. See http://www.heidisql.com/forum.php?t=20320 2016-01-10 17:48:24 +00:00
a8f6c8b023 Add support for JSON grid export format. See http://www.heidisql.com/forum.php?t=15307 2015-04-30 15:56:01 +00:00
f8e75b5d2e Basic implementation of Markdown Here grid export option. See http://www.heidisql.com/forum.php?t=16483 2015-04-06 20:00:53 +00:00
69f5503af3 Raise NodeDataSize of data and query grids from 4 bytes (PCardinal) to 8 bytes (PInt64), so TBaseVirtualTree.InsertNode does not barf in 64bit mode with a "Cannot set initial user data because there is not enough user data space allocated.". Fixes issue #3429. 2013-11-14 21:15:39 +00:00
5520e84fc2 Issue #3304: Escape column names for PHP 2013-08-07 04:39:42 +00:00
34fa56ab51 Escape exported PHP strings using some extra logic, instead of using incompatible TDBConnection.EscapeString. Fixes issue #3304. 2013-08-06 03:58:56 +00:00
7de712b741 Fix unused FCSVNull value in efExcel grid export. 2013-07-30 05:30:23 +00:00
8d191ef773 Provide edit box for custom NULL value, in grid export dialog. See http://www.heidisql.com/forum.php?t=13075 2013-07-30 05:21:36 +00:00
51c27f7a27 * Silence various compiler warnings about non initialized variables.
* Globally turn off platform warnings
2013-07-16 04:45:28 +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
c8e47298a9 Grid export: Remove zero padding to avoid octal => integer conversion in PHP. Fixes issue #3149. 2013-04-01 16:26:53 +00:00
53c9553c5b Grid export: Export quoted empty string when blob value is empty (SQL INSERTS/REPLACES). Fixes issue #2941. 2013-02-21 10:48:30 +00:00
4435346fc4 Fix erroneous formatted string in grid export dialog 2012-11-26 09:08:01 +00:00
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +00:00
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
015de362f1 Add fallback font family for HTML export. Fixes issue #2990. 2012-10-19 14:47:38 +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
e492421153 Use "\N" without enclosing chars for NULL values in CSV export, not an empty string. Just like MySQL does in a SELECT .. INTO OUTFILE. 2012-08-26 22:06:30 +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
9d5c5b061f Detect auto increment column id once after querying and use a simple variable AutoIncrementColumn, not via function ColIsAutoIncrement. Simplifies previous commit. 2012-08-26 09:49:48 +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
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
1d6bc760c8 Restrict HTML formatter for SQL INSERT/REPLACE output in grid export dialog to 100kb, as SynEdit is just too slow when exporting larger strings. Fixes issue #2903. 2012-07-26 17:02:28 +00:00
0f4ec0b3e9 Fix wrong spelled character sets in HTML files, exported from grids. Fixes issue #2825 2012-05-19 10:25:04 +00:00
36d8e53333 Issue #2744: Remove PHP start and end tags for clipboard version of grid export. 2012-03-05 12:30:13 +00:00
8f6b064c8a Do not export column names as array keys if "Column headers" is unchecked 2012-03-03 21:27:18 +00:00
347f1ee986 Add PHP file type to save dialog 2012-03-03 21:18:58 +00:00
f7dff6259a Implement grid export as PHP array. Fixes issue #2744. 2012-03-03 17:04:01 +00:00
4ef984b52d Do not write "NULL" string in grid export formats other than SQL INSERTs/REPLACEs. Fixes issue #2733. 2012-02-28 22:26:14 +00:00
4f0fe21622 Real export of column headers in LaTeX grid output. Fixes issue #2707. 2012-02-05 19:31:23 +00:00
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
07b831c4e9 Confirm overwriting grid export output file. Fixes issue #2596. 2011-11-04 18:45:05 +00:00
b185459ada Add "REPLACE INTO ..." to grid export output options. Fixes issue #2528. 2011-08-21 06:21:57 +00:00
a329844e9f Use hex style in WHERE clause and column values of grid updates. Fixes issue #2183. Also, raise warning when 0 rows were affected by UPDATE, INSERT or DELETE action. 2011-05-28 21:20:19 +00:00
42c29f7655 Catch exception when grid export file cannot be created. Fixes issue #2325. 2011-05-28 07:40:44 +00:00
3b91279777 Introduce support for BIT fields in grids and export output. See issue #766 and http://www.heidisql.com/forum.php?t=8462 2011-05-10 05:15:59 +00:00
97c4ba2cc0 Use semicolon separator for Excel if system decimal separator is comma. See http://www.heidisql.com/forum.php?t=8226 2011-05-03 05:26:17 +00:00
8b053ac80b Insert selected file to recent list only in file mode, not also in copy mode. Also, move that code from FormDestroy to btnOKClick, as it accesses a file list and the dialog instance could also be reused after pressing ok. 2011-05-01 22:27:43 +00:00
5064ba010e Set the right encoding in HTML and XML output, now that the user can select his preferred encoding. 2011-05-01 21:48:21 +00:00
1080a1f850 Auto-select format by file extension, also when picking a recently used file and file open dialog was in "All files" mode. 2011-05-01 10:33:21 +00:00
08d5d4fa9e Apply newer font hack to export dialog 2011-05-01 06:13:34 +00:00