Changeset 3557
- Timestamp:
- Jul 16, 2007, 9:01:56 AM (16 years ago)
- Location:
- trunk/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/common-queries.xml
r3528 r3557 2667 2667 <sql> 2668 2668 UPDATE FormulaData f 2669 SET f.averageMethod = 12669 SET f.averageMethod = 2 2670 2670 WHERE f.averageMethod IS NULL 2671 2671 </sql> 2672 2672 <description> 2673 A HQL query that sets the averageMethod to a for all2673 A HQL query that sets the averageMethod to arithmetic mean for all 2674 2674 formulas with a null value. 2675 2675 </description> … … 2679 2679 <sql> 2680 2680 UPDATE ExtraValueTypeData evt 2681 SET evt.averageMethod = 12681 SET evt.averageMethod = 2 2682 2682 WHERE evt.averageMethod IS NULL 2683 2683 </sql> 2684 2684 <description> 2685 A HQL query that sets the averageMethod to a for all2685 A HQL query that sets the averageMethod to arithmetic mean for all 2686 2686 extra value types with a null value. 2687 2687 </description> -
trunk/src/core/net/sf/basedb/core/Update.java
r3544 r3557 1665 1665 if (schemaVersion < 36) 1666 1666 { 1667 // Set averageMethod to 1for all formulas with a null value1667 // Set averageMethod to arithmetic mean (=2) for all formulas with a null value 1668 1668 org.hibernate.Query query = HibernateUtil.getPredefinedQuery(session, 1669 1669 "SET_AVERAGE_METHOD_ON_FORMULAS"); 1670 1670 /* 1671 1671 UPDATE FormulaData f 1672 SET f.averageMethod = 11672 SET f.averageMethod = 2 1673 1673 WHERE f.averageMethod IS NULL 1674 1674 */ 1675 1675 HibernateUtil.executeUpdate(query); 1676 1676 1677 // Set averageMethod to 1for all extravaluetypes with a null value1677 // Set averageMethod to arithmetic mean (=2) for all extravaluetypes with a null value 1678 1678 query = HibernateUtil.getPredefinedQuery(session, 1679 1679 "SET_AVERAGE_METHOD_ON_EXTRAVALUETYPES"); 1680 1680 /* 1681 1681 UPDATE ExtraValueTypeData evt 1682 SET evt.averageMethod = 11682 SET evt.averageMethod = 2 1683 1683 WHERE evt.averageMethod IS NULL 1684 1684 */
Note: See TracChangeset
for help on using the changeset viewer.