Skip to content
Snippets Groups Projects
Commit b62e0d92 authored by Sean Busbey's avatar Sean Busbey Committed by GitHub
Browse files

Merge pull request #793 from k1xme/fix-bug-jdbc-create

[jdbc]Fix bug in constructing CREATE TABLE SQL statement
parents b0a6b8c0 675a9e43
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ public final class JdbcDBCreateTable { ...@@ -68,7 +68,7 @@ public final class JdbcDBCreateTable {
sql = new StringBuilder("CREATE TABLE "); sql = new StringBuilder("CREATE TABLE ");
sql.append(tablename); sql.append(tablename);
sql.append(" (KEY VARCHAR PRIMARY KEY"); sql.append(" (YCSB_KEY VARCHAR PRIMARY KEY");
for (int idx = 0; idx < fieldcount; idx++) { for (int idx = 0; idx < fieldcount; idx++) {
sql.append(", FIELD"); sql.append(", FIELD");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment