diff options
Diffstat (limited to 'databases/kmysqladmin/patches/patch-ad')
-rw-r--r-- | databases/kmysqladmin/patches/patch-ad | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/databases/kmysqladmin/patches/patch-ad b/databases/kmysqladmin/patches/patch-ad index ba38cbde92c..62d29436b4e 100644 --- a/databases/kmysqladmin/patches/patch-ad +++ b/databases/kmysqladmin/patches/patch-ad @@ -1,7 +1,7 @@ -$NetBSD: patch-ad,v 1.4 2005/01/17 11:26:39 markd Exp $ +$NetBSD: patch-ad,v 1.5 2007/11/03 18:53:12 rillig Exp $ ---- kmysqladmin/backend/my_sql/my_sql.cpp.orig 2004-09-22 14:53:03.000000000 +1200 -+++ kmysqladmin/backend/my_sql/my_sql.cpp +--- kmysqladmin/backend/my_sql/my_sql.cpp.orig 2004-09-22 04:53:03.000000000 +0200 ++++ kmysqladmin/backend/my_sql/my_sql.cpp 2007-09-26 22:55:12.000000000 +0200 @@ -13,6 +13,7 @@ #include <stdio.h> #include <string.h> @@ -10,7 +10,28 @@ $NetBSD: patch-ad,v 1.4 2005/01/17 11:26:39 markd Exp $ #include <cmath> #include <iostream> -@@ -1184,7 +1185,11 @@ int CMySql::shutdown() +@@ -70,6 +71,7 @@ const my_sql_type CMySql::f_arr[]= + my_sql_type("DATETIME","DateTime", 14, 14,0,0,false,false,false,false,false,false,false,false), + my_sql_type("YEAR","Year", 4, 4,0,0, true,false,false,false,false,false,false,false), + my_sql_type("DOUBLE","Double (8 Bytes)", 1, 20,0,8, true, true, true,false,false, true,false,false), ++ my_sql_type("DOUBLE UNSIGNED", "Double (8 Bytes)", 1, 20,0,8, true, true, true, true,false, true,false,false), + my_sql_type("NUMERIC","Decimal (lenght,dec)", 1, 20,0,8, true, true, true,false, true, true,false,false), + }; + +@@ -469,8 +471,10 @@ bool CMySql::get_table_fields(const std: + } + } + if (f_type == FieldDescriptCounts()) { +- do_message("Error retrieving fieldtypes - please send a mail to the " +- "autor of the software!"); ++ std::string msg = "Unknown MySQL type "; ++ msg += type_string; ++ msg += " - please send a mail to the author of the software!"; ++ do_message(msg); + return false; + } + my_sql_type t_info = sql_type(f_type); +@@ -1184,7 +1188,11 @@ int CMySql::shutdown() int i; if (!Sql_Connection) return 0; |