dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27955
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13941: Analytics, shortening name of indexes. Gave trouble on mysql which has smaller max-length of inde...
------------------------------------------------------------
revno: 13941
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-02-05 15:12:03 +0200
message:
Analytics, shortening name of indexes. Gave trouble on mysql which has smaller max-length of index names than postgres.
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java
--
lp:dhis2
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
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java 2014-01-20 20:12:22 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java 2014-02-05 13:12:03 +0000
@@ -41,7 +41,6 @@
import org.hisp.dhis.analytics.AnalyticsIndex;
import org.hisp.dhis.analytics.AnalyticsTable;
import org.hisp.dhis.analytics.AnalyticsTableManager;
-import org.hisp.dhis.common.CodeGenerator;
import org.hisp.dhis.dataelement.DataElementCategoryService;
import org.hisp.dhis.dataelement.DataElementService;
import org.hisp.dhis.jdbc.StatementBuilder;
@@ -155,7 +154,7 @@
break taskLoop;
}
- final String indexName = quote( PREFIX_INDEX + removeQuote( inx.getColumn() ) + "_" + inx.getTable() + "_" + CodeGenerator.generateCode() );
+ final String indexName = quote( PREFIX_INDEX + removeQuote( inx.getColumn() ) + "_" + inx.getTable() );
final String sql = "create index " + indexName + " on " + inx.getTable() + " (" + inx.getColumn() + ")";