Skip to content

Commit

Permalink
Review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Aug 27, 2023
1 parent 135c51b commit 89b42aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public String createSelectDueQuery(String tableName, int limit, String andCondit
return "SELECT "
+ " * FROM "
+ tableName
// try reading past locked rows to see if that helps on deadlock-warnings
+ " WITH (READPAST) WHERE picked = ? AND execution_time <= ? "
+ andCondition
+ " ORDER BY execution_time ASC "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MySQL8JdbcCustomization extends DefaultJdbcCustomization {

@Override
public String getName() {
return "MySQL";
return "MySQL => v8";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MySQLJdbcCustomization extends DefaultJdbcCustomization {

@Override
public String getName() {
return "MySQL";
return "MySQL < v8";
}

@Override
Expand Down
1 change: 1 addition & 0 deletions db-scheduler/src/test/resources/mariadb_tables.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- Best-effort schema definition based on MySQL schema. Please suggest improvements.
create table test.scheduled_tasks (
task_name varchar(40) not null,
task_instance varchar(40) not null,
Expand Down

0 comments on commit 89b42aa

Please sign in to comment.