List:Commits« Previous MessageNext Message »
From:Marc Alff Date:September 23 2010 4:12pm
Subject:bzr commit into mysql-next-mr-wl4816 branch (marc.alff:3195)
View as plain text  
#At file:///home/malff/BZR_TREE/mysql-next-mr-wl4816/ based on revid:marc.alff@stripped

 3195 Marc Alff	2010-09-23
      Added missing file

    added:
      storage/perfschema/table_helper.cc
=== added file 'storage/perfschema/table_helper.cc'
--- a/storage/perfschema/table_helper.cc	1970-01-01 00:00:00 +0000
+++ b/storage/perfschema/table_helper.cc	2010-09-23 16:12:54 +0000
@@ -0,0 +1,40 @@
+/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; version 2 of the License.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
+
+/**
+  @file storage/perfschema/table_helper.cc
+  Performance schema table helpers (implementation).
+*/
+
+#include "my_global.h"
+#include "my_pthread.h"
+#include "pfs_engine_table.h"
+#include "table_helper.h"
+
+void set_field_object_type(Field *f, enum_object_type object_type)
+{
+  switch (object_type)
+  {
+  case OBJECT_TYPE_TABLE:
+    PFS_engine_table::set_field_varchar_utf8(f, "TABLE", 5);
+    break;
+  case OBJECT_TYPE_TEMPORARY_TABLE:
+    PFS_engine_table::set_field_varchar_utf8(f, "TEMPORARY TABLE", 15);
+    break;
+  default:
+    DBUG_ASSERT(false);
+  }
+}
+


Attachment: [text/bzr-bundle] bzr/marc.alff@oracle.com-20100923161254-vvhahr0ky5bq0vkl.bundle
Thread
bzr commit into mysql-next-mr-wl4816 branch (marc.alff:3195) Marc Alff23 Sep