From 4c252a27537458bbf144224e247d3c8adfaeabe5 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 20 Jul 2010 20:25:57 +0000 Subject: [PATCH] fix in where clause --- dev/manage-code/create-file/create_file_table.sql | 2 +- dev/manage-code/create-file/create_phpclass.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/manage-code/create-file/create_file_table.sql b/dev/manage-code/create-file/create_file_table.sql index 51f1cc713..039363b38 100644 --- a/dev/manage-code/create-file/create_file_table.sql +++ b/dev/manage-code/create-file/create_file_table.sql @@ -3,5 +3,5 @@ SELECT FROM information_schema.columns WHERE - columns.table_name='section'; + columns.table_name='member_record'; diff --git a/dev/manage-code/create-file/create_phpclass.py b/dev/manage-code/create-file/create_phpclass.py index a507343b6..de112dc63 100755 --- a/dev/manage-code/create-file/create_phpclass.py +++ b/dev/manage-code/create-file/create_phpclass.py @@ -114,7 +114,7 @@ class @class_name@ @mother_class@ { $where=""; if ( trim($cond) != '') $where="where"; - $sql="select * from @table@ where $cond"; + $sql="select * from @table@ $where $cond"; $aobj=array(); $array= $this->cn->get_array($sql,$p_array); // map each row in a object