dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00658
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 180: dhis-service-jdbc: Simplified delete zero value sql statement
------------------------------------------------------------
revno: 180
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Thu 2009-04-16 15:12:57 +0200
message:
dhis-service-jdbc: Simplified delete zero value sql statement
modified:
dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/DerbyStatementBuilder.java
dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/H2StatementBuilder.java
dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/MySQLStatementBuilder.java
dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/PostgreSQLStatementBuilder.java
=== modified file 'dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/DerbyStatementBuilder.java'
--- dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/DerbyStatementBuilder.java 2009-04-07 18:32:17 +0000
+++ dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/DerbyStatementBuilder.java 2009-04-16 13:12:57 +0000
@@ -253,7 +253,7 @@
"USING datavalue, dataelement " +
"WHERE datavalue.dataelementid = dataelement.dataelementid " +
"AND dataelement.aggregationtype = 'sum' " +
- "AND datavalue.value IN ( '0', '0.', '.0', '0.0' )";
+ "AND datavalue.value = '0'";
}
public int getMaximumNumberOfColumns()
=== modified file 'dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/H2StatementBuilder.java'
--- dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/H2StatementBuilder.java 2009-04-14 16:28:23 +0000
+++ dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/H2StatementBuilder.java 2009-04-16 13:12:57 +0000
@@ -239,7 +239,7 @@
{
return
"DELETE FROM datavalue " +
- "WHERE datavalue.value IN ( '0', '0.', '.0', '0.0', ' 0', '0 ', '0 0' )";
+ "WHERE datavalue.value = '0'";
}
public int getMaximumNumberOfColumns()
=== modified file 'dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/MySQLStatementBuilder.java'
--- dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/MySQLStatementBuilder.java 2009-04-07 18:32:17 +0000
+++ dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/MySQLStatementBuilder.java 2009-04-16 13:12:57 +0000
@@ -241,7 +241,7 @@
"USING datavalue, dataelement " +
"WHERE datavalue.dataelementid = dataelement.dataelementid " +
"AND dataelement.aggregationtype = 'sum' " +
- "AND datavalue.value IN ( '0', '0.', '.0', '0.0', ' 0', '0 ', '0 0' )";
+ "AND datavalue.value = '0'";
}
public int getMaximumNumberOfColumns()
=== modified file 'dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/PostgreSQLStatementBuilder.java'
--- dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/PostgreSQLStatementBuilder.java 2009-04-07 18:32:17 +0000
+++ dhis-2/dhis-services/dhis-service-jdbc/src/main/java/org/hisp/dhis/jdbc/statementbuilder/PostgreSQLStatementBuilder.java 2009-04-16 13:12:57 +0000
@@ -252,7 +252,7 @@
"USING dataelement " +
"WHERE datavalue.dataelementid = dataelement.dataelementid " +
"AND dataelement.aggregationtype = 'sum' " +
- "AND datavalue.value IN ( '0', '0.', '.0', '0.0', ' 0', '0 ', '0 0' )";
+ "AND datavalue.value = '0'";
}
public int getMaximumNumberOfColumns()
--
Trunk
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.