Skip to content

Commit

Permalink
changed
Browse files Browse the repository at this point in the history
"jdbcTemplate.execute("DROP TABLE customers IF EXISTS");" to
"jdbcTemplate.execute("DROP TABLE IF EXISTS customers");" as stated in spring-guides#27
  • Loading branch information
43v3rn88b committed Jan 26, 2024
1 parent bbae53b commit a70774b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void run(String... strings) throws Exception {

log.info("Creating tables");

jdbcTemplate.execute("DROP TABLE customers IF EXISTS");
jdbcTemplate.execute("DROP TABLE IF EXISTS customers");
jdbcTemplate.execute("CREATE TABLE customers(" +
"id SERIAL, first_name VARCHAR(255), last_name VARCHAR(255))");

Expand Down

0 comments on commit a70774b

Please sign in to comment.