154 Commits

Author SHA1 Message Date
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
44782e5129 Avoid usage of ExtractFilename for session registry keys, as this cuts strings at characters which are not allowed in filenames, but allowed in registry keys. Fixes issue #2909. 2012-07-31 07:39:27 +00:00
56e0d8b445 Implement session folders. Fixes issue #1228. 2012-07-27 06:54:56 +00:00
82668cca67 Issue #1228: Introduce new columns in session managers list of sessions: "Last connect" and "Counter". 2012-07-19 09:08:42 +00:00
08ec09c3dd Fix issue #1031: Have folders for tables, views, routines in database tree. 2012-07-19 07:07:50 +00:00
8af6d3c900 TDBQuery.GetWhereClause uses an empty string on a not yet fetched, inserted row. So a numerical cell which is part of a primary/unique key gets into the WHERE clause without any value. Fix that by using "0" as a default if it's an empty string. Avoid usage of UnformatNumber(), which I removed in r4047. Fixes issue #2867. 2012-06-12 19:50:48 +00:00
e2f09b0d8d Make local timezone feature a per session option. See http://www.heidisql.com/forum.php?t=10635 2012-05-25 17:46:57 +00:00
aaf80e7d93 Limit SET time_zone query to 4.1.3+ servers, to fix "Unknown system variable time_zone" error on old servers. 2012-05-20 12:10:41 +00:00
18bcbd8235 Support insertion of SQL function calls in grid cells, via context menu and shortcut Ctrl+F2. Also, reload full row data after INSERT and UPDATE. 2012-05-18 17:01:59 +00:00
de504e4a18 Detect client timezone in TMySQLConnection.DoAfterConnect and send SET time_zone to the server, so that NOW() and friends return UTC-fixed values. See http://www.heidisql.com/forum.php?t=10635 . Breaks grid editing of date/time values, issue #1835, while timestamp columns use server magic. 2012-05-17 06:18:23 +00:00
5e8bf8306a Remove unused unit inclusions, detected by CNPack/Uses cleaner 2012-05-01 08:34:12 +00:00
a9260a49d6 Fix black tree background, broken in previous commit. 2012-04-22 12:10:06 +00:00
1b5285bb0e Introduce TConnectionParameters.SessionColor property to hold the tree background color, and use that to paint the background of relevant nodes only, instead of the whole tree. See http://www.heidisql.com/forum.php?t=10133 2012-04-22 08:40:30 +00:00