166 Commits

Author SHA1 Message Date
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
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
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
478117d306 Issue #2496: Remove square brackets per TDBConnection.DeQuoteIdent() 2013-03-15 16:53:12 +00:00
a07d3818f2 Issue #2496: Support square brackets in MSSQL as an alternative way to quote identifiers. 2013-03-15 05:33:42 +00:00
c037dce946 Include database name in GetCreateViewCode(). Fixes issue #3098. 2013-03-03 09:13:25 +00:00
bdae3aabf5 Make use of property writer SetCreateCode, and display errors in SQL log when GetCreateCode failed. 2013-02-28 20:11:26 +00:00
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
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
2ef59d0c94 Fix updating empty binary column value. 2013-02-27 16:56:50 +00:00
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
9841bc3f21 Support BIT data type in MS SQL. Fixes issue #2955. 2013-02-24 10:49:33 +00:00
8e68663636 Detect primary and unique keys on MS SQL tables. Makes grid updates safer, and these keys show up in the table designer. Fixes issue #2946. 2013-02-23 10:33:55 +00:00
fc015e61bd Let ParseRoutineStructure() cache values from IS.ROUTINES into TDBObject members. Fixes issue #3108. 2013-02-21 11:19:44 +00:00
d84e4ca8b1 Support old style "TYPE BTREE" in table index code. See http://www.heidisql.com/forum.php?t=12150 2013-02-20 16:07:02 +00:00
3d6ab973d6 Get everything except routine parameters from IS.ROUTINES, to fix another regular expression problem in ParseRoutineStructure. Fixes issue #3114. 2013-02-20 15:51:12 +00:00
95ab784008 Finally fix ramshackle detection of routine body. Fixes issue #3103, #3104. 2013-02-08 11:25:12 +00:00
95ba3d7e3d r4185 broke Host > Variables tab for MSSQL. Introduce SQL specifity for SHOW VARIABLES to fix that. Fixes issue #3100. 2013-01-28 19:06:13 +00:00
ebe36bb0cd Strip routine body early in ParseRoutineStructure, so later regular expressions don't get confused by keywords in user SQL. Fixes issue #3085. 2013-01-27 06:59:37 +00:00
cd75b0899d Quote db and table name in new function TDBObject.QuotedDbAndTableName, which also adds "dbo" for MS SQL inbetween. Plus, run SELECT in SQL export through ApplyLimitClause, to fix an SQL error on MS SQL. See http://www.heidisql.com/forum.php?t=11956 2013-01-19 12:43:41 +00:00
252e343c22 Ignore error at connection time on MS Azure servers without sysprocesses table. Fixes issue #3087. 2013-01-15 09:38:54 +00:00
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
dffae1b4af Issue #3003: Add support for microseconds in some temporal datatypes of MariaDB 5.3+ and MySQL 5.6, at least in the table editor. TODO: Support that in data grid editor too. 2012-12-15 06:56:44 +00:00
5a4d7faa22 Leave out TTimer based keep alive ping during long running queries. Fixes disconnects and AVs mentioned by a couple of users:
* http://www.heidisql.com/forum.php?t=11751
* http://www.heidisql.com/forum.php?t=8568
2012-12-11 18:18:00 +00:00
a08a907b41 Use default string setting, not integer, as port value for a new session. Fixes issue #3036. 2012-12-10 18:26:04 +00:00
a086afc29b Remove all ANSI quotes in TDBConnection.DeQuoteIdent(). Fixes issue #3056. 2012-12-10 18:21:50 +00:00
ff7cddbd99 Display small overlay icons for lntTable items with some special table engines like federated, csv, aria and performance_schema. Fixes issue #3014. 2012-12-09 12:00:17 +00:00
e9c549f3a0 Remove "Ping server" debug message from translation 2012-12-05 05:35:46 +00:00
51389f9e43 Fix server version detection for major versions > 9, taking more than one digit into account. Fixes issue #3041. 2012-12-03 20:44:14 +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
80d41dcc9e Fix typos and optimize a bunch of translations. Technical stuff such as variable names and version numbers should not be subject of translations. 2012-11-27 21:26:59 +00:00
f96288fce9 Translate string variables and literals in .pas files. TODO: translate constants. 2012-11-26 05:44:01 +00:00
8ec290a302 Fix synapse usage:
* missing unit search path for synapse in auto-build script
* move unit search path from RELEASE to BASE
* make use of helpers:EncodeURLElementUnicode
2012-10-21 12:32:19 +00:00
9d03e25c39 Suppress clear text password in error dialog when plink.exe could not get executed, or exits with error. Fixes issue #2966. 2012-10-19 15:16:50 +00:00
505ede02aa Make TDBQuery.HasFullData more reliable when a field has exactly GRIDMAXDATA(256) chars. See http://www.heidisql.com/forum.php?t=11346 2012-10-19 05:57:41 +00:00
2f10329e62 Implement an automatic, non-configurable keep-alive ping, to prevent SSH tunnels from disconnecting. Fixes issue #2935. 2012-10-12 15:01:34 +00:00
1855f6b57d Remove LIMIT 1 clause for safe grid queries. This prevents grid updates on simple tables from running into replication mode warning "Statement is not safe to log in statement format". See http://www.heidisql.com/forum.php?t=11304 2012-10-04 20:18:08 +00:00
c0610ef70d Add support for renaming tables in MS SQL. Fixes issue #2981. 2012-10-04 19:04:05 +00:00
d4f5a32fe8 Fix crash on exit when connected to pre-4.1 servers. See http://www.heidisql.com/forum.php?t=11116 2012-09-29 19:32:20 +00:00
cd3aad267a Get away from using "2008", "2000" version numbers for MSSQL, to add compatibility to old MS SQL servers, e.g. 7.0 had no year-styled version. Instead, use 700 for 7.0, 800 for 2000, and so on. Use these more exact version numbers to fix a 7.0 issue in TAdoDBConnection.GetAllDatabases. See http://www.heidisql.com/forum.php?t=11230. 2012-09-29 08:35:03 +00:00
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
9ccfa083cb Casting integers to TNetType does not throw any exception, so later calls to GetNetTypeGroup throws one when you have an invalid value stored in registry. See issue #2958. Handle such broken values at the time when they are read and popup a less crashy error dialog in that case. 2012-09-11 20:52:59 +00:00
458b10dbc6 Move some code to TDBConnection.ExplainAnalyzer(), and introduce new query context menu items "Explain current query" and "Explain analyzer for current query". See http://www.heidisql.com/forum.php?t=11036 2012-09-07 15:39:23 +00:00
17600be9c1 FHostListResults needs its own copy of a SHOW VARIABLES result, to overcome invalid pointer operations when freeing the result within TMySQLConnection.GetServerVariables. Fixes issue #2943. 2012-08-30 21:43:52 +00:00
225dba02d7 Assume user wants default length/set for columns of an existing table, until he enters some new value. Fixes issue #2942. 2012-08-28 17:44:55 +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
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