MSSQL driver fixed for freetds drivers. See bug #167, #291

This commit is contained in:
Uherkovich Péter 2017-12-18 21:59:05 +01:00 committed by Jakub Vrana
parent 34e2f47761
commit a2adb67d2f
2 changed files with 2 additions and 1 deletions

View file

@ -361,7 +361,7 @@ if (isset($_GET["mssql"])) {
function fields($table) {
$return = array();
foreach (get_rows("SELECT c.*, t.name type, d.definition [default]
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
JOIN sys.all_objects o ON c.object_id = o.object_id
JOIN sys.types t ON c.user_type_id = t.user_type_id

View file

@ -5,6 +5,7 @@ SQLite: Enable foreign key checks
PostgreSQL: Respect NULL default value
PostgreSQL: Do not export triggers if not requested
PostgreSQL: Export DROP SEQUENCE if dropping table
MS SQL: Support freetds
Elasticsearch: Insert, update, delete
MongoDB: Support mongodb PHP extension