01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.mysql;
07:
08: import java.sql.Types;
09:
10: import org.openrdf.sail.rdbms.schema.ValueTable;
11:
12: /**
13: *
14: * @author James Leigh
15: */
16: public class MySqlValueTable extends ValueTable {
17: private static final String FEILD_COLLATE = " CHARACTER SET utf8 COLLATE utf8_bin";
18:
19: @Override
20: public String sql(int type, int length) {
21: String declare = super.sql(type, length);
22: if (type == Types.VARCHAR) {
23: return declare + FEILD_COLLATE;
24: } else if (type == Types.LONGVARCHAR) {
25: return declare + FEILD_COLLATE;
26: } else {
27: return declare;
28: }
29: }
30:
31: }
|