1 --- misc/hsqldb/src/org/hsqldb/Table.java 2007-10-19 23:59:07.000000000 +0200
2 +++ misc/build/hsqldb/src/org/hsqldb/Table.java 2009-09-11 13:45:42.939231519 +0200
4 Constraint[] constraintList; // constrainst for the table
5 HsqlArrayList[] triggerLists; // array of trigger lists
6 private int[] colTypes; // fredt - types of columns
7 - private int[] colSizes; // fredt - copy of SIZE values for columns
8 + int[] colSizes; // fredt - copy of SIZE values for columns
9 private int[] colScales; // fredt - copy of SCALE values for columns
10 private boolean[] colNullable; // fredt - modified copy of isNullable() values
11 - private Expression[] colDefaults; // fredt - expressions of DEFAULT values
12 + Expression[] colDefaults; // fredt - expressions of DEFAULT values
13 private int[] defaultColumnMap; // fred - holding 0,1,2,3,...
14 private boolean hasDefaultValues; //fredt - shortcut for above
15 boolean sqlEnforceSize; // inherited from the database -
16 --- misc/hsqldb/src/org/hsqldb/TableWorks.java 2007-01-14 06:48:16.000000000 +0100
17 +++ misc/build/hsqldb/src/org/hsqldb/TableWorks.java 2009-09-11 13:47:50.328667463 +0200
19 // default expressions can change
20 oldCol.setType(newCol);
21 oldCol.setDefaultExpression(newCol.getDefaultExpression());
22 - table.setColumnTypeVars(colIndex);
23 + table.colSizes[colIndex] = oldCol.getSize();
24 + table.colDefaults[colIndex] = oldCol.getDefaultExpression();
25 table.resetDefaultsFlag();