.getFieldType(i), driverMetadata.getFieldParams(i));
}
String[] pks = driverMetadata.getPrimaryKeys();
if (pks.length == 0) {
throw new DriverException("No primary key specified");
} else {
sql += ", PRIMARY KEY(" + pks[0];
for (int i = 1; i < pks.length; i++) {
sql += ", " + pks[i];
}
sql += ")";
}
sql += ")";
try {
Statement st = c.createStatement();
st.execute(sql);
st.close();
} catch (SQLException e) {
throw new DriverException(e.getMessage() + ":" + sql, e);
}
}