From 2043139820e77f8dd597abc5ac72797488ad0356 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 24 Jul 2006 18:19:13 +0000 Subject: [PATCH] added -describeTableNames for MySQL git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1325 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-gdl1/MySQL/ChangeLog | 5 +++++ sope-gdl1/MySQL/MySQL4Channel+Model.m | 5 +++-- sope-gdl1/MySQL/Version | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sope-gdl1/MySQL/ChangeLog b/sope-gdl1/MySQL/ChangeLog index 3bca6721..894efdc4 100644 --- a/sope-gdl1/MySQL/ChangeLog +++ b/sope-gdl1/MySQL/ChangeLog @@ -1,3 +1,8 @@ +2006-07-24 Helge Hess + + * MySQL4Channel+Model.m: added SHOW TABLES to retrieve MySQL table + names (v4.5.14) + 2006-07-04 Helge Hess * use %p for pointer formats, fixed gcc 4.1 warnings (v4.5.13) diff --git a/sope-gdl1/MySQL/MySQL4Channel+Model.m b/sope-gdl1/MySQL/MySQL4Channel+Model.m index 173c5291..f92714a7 100644 --- a/sope-gdl1/MySQL/MySQL4Channel+Model.m +++ b/sope-gdl1/MySQL/MySQL4Channel+Model.m @@ -1,7 +1,8 @@ /* MySQL4Channel+Model.m - Copyright (C) 2003-2005 SKYRIX Software AG + Copyright (C) 2003-2006 SKYRIX Software AG + Copyright (C) 2006 Helge Hess Author: Helge Hess (helge.hess@skyrix.com) @@ -282,7 +283,7 @@ NSDictionary *row = nil; NSString *selectExpression = nil; - selectExpression = @"SELECT name FROM sqlite_master WHERE type='table'"; + selectExpression = @"SHOW TABLES"; if (![self evaluateExpression:selectExpression]) { fprintf(stderr, "Could not evaluate table-describe expression '%s'\n", [selectExpression cString]); diff --git a/sope-gdl1/MySQL/Version b/sope-gdl1/MySQL/Version index 76aa6eb9..f61be538 100644 --- a/sope-gdl1/MySQL/Version +++ b/sope-gdl1/MySQL/Version @@ -1,3 +1,3 @@ # Version file -SUBMINOR_VERSION:=13 +SUBMINOR_VERSION:=14 -- 2.39.5