From 602cb01718953b894ec79ce2384d2794403ac986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sun, 23 Dec 2007 13:22:12 +0000 Subject: #198234 by bjaspan: fix improper type maps for numeric and char values in schema API --- includes/database.mysql-common.inc | 2 +- includes/database.pgsql.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/database.mysql-common.inc b/includes/database.mysql-common.inc index a537e7a59..2fd0a4857 100644 --- a/includes/database.mysql-common.inc +++ b/includes/database.mysql-common.inc @@ -225,7 +225,7 @@ function db_type_map() { 'float:big' => 'DOUBLE', 'float:normal' => 'FLOAT', - 'numeric:normal' => 'NUMERIC', + 'numeric:normal' => 'DECIMAL', 'blob:big' => 'LONGBLOB', 'blob:normal' => 'BLOB', diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc index 1d3cef333..65e049263 100644 --- a/includes/database.pgsql.inc +++ b/includes/database.pgsql.inc @@ -444,7 +444,7 @@ function db_type_map() { // database types back into schema types. $map = array( 'varchar:normal' => 'varchar', - 'char:normal' => 'char', + 'char:normal' => 'character', 'text:tiny' => 'text', 'text:small' => 'text', -- cgit v1.2.3