From d6ecf92967aed99377514f4ed99ce60cc78d2e96 Mon Sep 17 00:00:00 2001 From: ioguix Date: Thu, 27 Dec 2007 18:28:36 +0000 Subject: [PATCH] fix a php notice about undefinied index tablespace for pg < 8.0 when creating a table with "create table (like ...)" --- tables.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tables.php b/tables.php index 8384a3e1..329947f7 100644 --- a/tables.php +++ b/tables.php @@ -3,7 +3,7 @@ /** * List tables in a database * - * $Id: tables.php,v 1.107 2007/12/16 01:30:14 ioguix Exp $ + * $Id: tables.php,v 1.108 2007/12/27 18:28:36 ioguix Exp $ */ // Include application functions @@ -320,6 +320,8 @@ return; } + if (!isset($_REQUEST['tablespace'])) $_REQUEST['tablespace'] = ''; + $status = $data->createTableLike($_REQUEST['name'], $_REQUEST['like'], isset($_REQUEST['withdefaults']), isset($_REQUEST['withconstraints']), isset($_REQUEST['withindexes']), $_REQUEST['tablespace']); if ($status == 0) { -- 2.39.5