X-Git-Url: http://secure.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/PHPSelectRowPage.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/PHPSelectRowPage.java index c15581a..beef6fb 100644 --- a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/PHPSelectRowPage.java +++ b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/PHPSelectRowPage.java @@ -35,27 +35,33 @@ public class PHPSelectRowPage extends WizardPage implements SQLPage { } public void createControl(Composite parent) { - System.out.println("page create control"); + if (DEBUG) { + System.out.println("page create control"); + } Composite container = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); container.setLayout(layout); int layoutColumns = 4; layout.numColumns = layoutColumns; - if (row == null) { - System.out.println("Row is null"); - } - if (row.getColumnNames() == null) { - System.out.println("Columns are null"); - } - if (row.getTableData() == null) { - System.out.println("Data is null"); + if (DEBUG) { + if (row == null) { + System.out.println("Row is null"); + } + if (row.getColumnNames() == null) { + System.out.println("Columns are null"); + } + if (row.getTableData() == null) { + System.out.println("Data is null"); + } } columnNames = row.getColumnNames(); String[] data = row.getTableData(); - for (int i = 0; i < row.getColumnCount(); i++) { - System.out.println("data = " + i + "=" + data[i]); - System.out.println("column = " + i + "=" + columnNames[i]); + if (DEBUG) { + for (int i = 0; i < row.getColumnCount(); i++) { + System.out.println("data = " + i + "=" + data[i]); + System.out.println("column = " + i + "=" + columnNames[i]); + } } oldValues = new Text[row.getColumnCount()]; // newValues = new Text[row.getColumnCount()]; @@ -128,7 +134,9 @@ public class PHPSelectRowPage extends WizardPage implements SQLPage { } public void updateQuery() { - System.out.println("PHP SELECT"); + if (DEBUG) { + System.out.println("PHP SELECT"); + } StringBuffer setClause = new StringBuffer(); StringBuffer whereClause = new StringBuffer(); String temp; @@ -142,12 +150,11 @@ public class PHPSelectRowPage extends WizardPage implements SQLPage { whereClause.append(columnNames[i]); whereClause.append(" = "); temp = oldValues[i].getText(); -// if (temp.charAt(0) == '$') { -// whereClause.append(temp); -// } else { - whereClause.append("'"+temp+"'"); -// } - + // if (temp.charAt(0) == '$') { + // whereClause.append(temp); + // } else { + whereClause.append("'" + temp + "'"); + // } } if (setValues[i].getSelection()) {