8e02fa9fee
Move helpers:GetIndexIcon to TTableKey.GetImageIndex
2013-06-25 04:15:11 +00:00
e5486ebc5e
* Avoid calling TDBConnection.ClearDbObjects() on active database after copying table. Instead, call actRefresh which takes care of a probably opened table object in the table editor.
...
* Check for table existence via SELECT on IS.TABLES, avoid usage and refresh of db objects here also.
* Fixes issue #3250 .
2013-06-24 04:56:24 +00:00
5ed52a851a
Inject default schema between db and table in TDBConnection.QuotedDbAndTableName if target object does not exist. See issue #3212 .
2013-06-22 05:52:30 +00:00
56b6e103a0
Introduce TDBConnection.FindObject(db, obj). Use that in TDBConnection.QuotedDbAndTableName() and for checks for table existence.
2013-06-22 05:35:36 +00:00
6371ff5557
Issue #3212 : Introduce TDBConnection.QuotedDbAndTableName(), callable with a db and table string. Internally calls TDBObject.QuotedDbAndTableName(), so we get the schema between db and table if required.
2013-06-22 04:45:53 +00:00
9b7393ee56
Issue #3212 : Add basic support for schemas in MSSQL.
2013-06-21 04:52:25 +00:00
d9a5cfab41
Add overlay icons for table engines Blackhole and MergeMyISAM.
2013-06-17 21:12:21 +00:00
574498f955
Fix detection of text column types in MSSQL, so TEXT and NTEXT do not appear as numbers in query results.
2013-06-03 04:47:45 +00:00
976881c748
Join the two error message snippets with a linefeed, not a space, so that gets more readable. See http://www.heidisql.com/forum.php?t=12758
2013-05-30 08:48:57 +00:00
ed4f197f3f
Use additional EOleException message in GetLastError. See http://www.heidisql.com/forum.php?t=12758
2013-05-30 06:08:36 +00:00
b359c9df88
MSSQL: Escape joker chars in conjunction with an "ESCAPE" appendix after the LIKE clause. See http://www.heidisql.com/forum.php?t=12747 .
2013-05-28 17:48:55 +00:00
c4f0b2798b
MSSQL wants single quotes escaped with a second single quote, not with a backslash. No clue how to escape joker chars in a WHERE clause.
2013-05-28 04:54:08 +00:00
9cf6634426
Insert/update NVARCHAR/NTEXT/NCHAR contents with preceding "N", as MSSQL wants Unicode strings handled this way. See issue #2873 .
2013-05-27 04:32:01 +00:00
8c711d3e56
Put session name into caption of login-on-demand dialog, so applications like Keepass can identify it. Fixes issue #3180 .
2013-05-25 06:15:17 +00:00
8dd4399395
Introduce server specific quote characters, so ParseTableStructure() and DeQuoteIdent() do not remove too much.
...
* bug report: http://www.heidisql.com/forum.php?t=12685
* broken in r4364, for fixing issue #2496
2013-05-23 17:37:01 +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
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
b04fac85cc
Add "Global" column to ListVariables, and highlight values different to their session pendant.
2013-04-17 05:02:36 +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
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
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