Skip to content

Commit

Permalink
[jdbc] Use TEXT for fields instead of VARCHAR (brianfrankcooper#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
risdenk authored and busbey committed Sep 17, 2017
1 parent 035310c commit d6e57c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jdbc/src/main/java/com/yahoo/ycsb/db/JdbcDBClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*
* <br>
* This interface expects a schema <key> <field1> <field2> <field3> ... All
* attributes are of type VARCHAR. All accesses are through the primary key.
* attributes are of type TEXT. All accesses are through the primary key.
* Therefore, only one index on the primary key is needed.
*/
public class JdbcDBClient extends DB {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static void createTable(Properties props, String tablename) throws SQLEx
for (int idx = 0; idx < fieldcount; idx++) {
sql.append(", FIELD");
sql.append(idx);
sql.append(" VARCHAR");
sql.append(" TEXT");
}
sql.append(");");

Expand Down

0 comments on commit d6e57c3

Please sign in to comment.