MSSQL: Don't trucate displayed comments to 30 chars (use varchar maximum of 8000 upon casting)
This commit is contained in:
parent
84063fb7cd
commit
8762895bb3
|
@ -368,7 +368,7 @@ if (isset($_GET["mssql"])) {
|
|||
}
|
||||
|
||||
function fields($table) {
|
||||
$comments = get_key_vals("SELECT objname, cast(value as varchar) FROM fn_listextendedproperty('MS_DESCRIPTION', 'schema', " . q(get_schema()) . ", 'table', " . q($table) . ", 'column', NULL)");
|
||||
$comments = get_key_vals("SELECT objname, cast(value as varchar(max)) FROM fn_listextendedproperty('MS_DESCRIPTION', 'schema', " . q(get_schema()) . ", 'table', " . q($table) . ", 'column', NULL)");
|
||||
$return = array();
|
||||
foreach (get_rows("SELECT c.max_length, c.precision, c.scale, c.name, c.is_nullable, c.is_identity, c.collation_name, t.name type, CAST(d.definition as text) [default]
|
||||
FROM sys.all_columns c
|
||||
|
|
|
@ -5,6 +5,7 @@ PostgreSQL: Export all FKs after all CREATE TABLE (PR #351)
|
|||
PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738)
|
||||
PostgreSQL: Do not show view definition from other schema (PR #392)
|
||||
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
|
||||
MS SQL: Don't truncate comments to 30 chars (PR #376)
|
||||
Re-enable PHP warnings (regression from 4.7.8)
|
||||
|
||||
Adminer 4.7.8 (released 2020-12-06):
|
||||
|
|
Loading…
Reference in a new issue