Skip to content

Commit

Permalink
[BugFix] fix sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
cashlalala committed Nov 23, 2014
1 parent 9d041d8 commit 7a38cf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/casemgmt/Tab_WoundAssessment.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ private void refreshData() {

rs = DBC.executeQuery(sql);
if (!rs.next()) {
String sqlInsert = "INSERT into wound_accessment '"+ guid + "', "
String sqlInsert = "INSERT into wound_accessment values ( '"+ guid + "', "
+ " '" + this.caseGuid + "', '" + p_no + "'";
int i = 0;
for (i = 0; i < 16; i++) {
sqlInsert = sqlInsert + ", NULL";
}
sqlInsert += ")";
DBC.executeUpdate(sqlInsert);
} else {
if (rs.getString("wound_accessment.Hypertension") != null
Expand Down

0 comments on commit 7a38cf1

Please sign in to comment.