Fix tests after table name change
This commit is contained in:
parent
e5d833846e
commit
1549abfac4
@ -9,7 +9,7 @@ import java.util.*
|
||||
private const val GET_ACTUAL_QRS_BY_UNIT_ID = """
|
||||
SELECT q.start_date_time, q.end_date_time, q.door_id, q.key_code FROM qrs q
|
||||
JOIN doors d ON (d.id = q.door_id)
|
||||
JOIN oauth2_authorized_client c ON (c.id = d.unit_id)
|
||||
JOIN oauth2_registered_client c ON (c.id = d.unit_id)
|
||||
WHERE c.id = ? AND q.start_date_time <= CURRENT_TIMESTAMP AND q.end_date_time >= CURRENT_TIMESTAMP
|
||||
"""
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.time.LocalDateTime
|
||||
import java.time.OffsetDateTime
|
||||
|
||||
private const val INSERT_CLIENT_QUERY =
|
||||
"""INSERT INTO oauth2_authorized_client(id, client_id, client_id_issued_at, client_secret, client_secret_expires_at, client_name, client_authentication_methods, authorization_grant_types, redirect_uris, post_logout_redirect_uris, scopes, client_settings, token_settings)
|
||||
"""INSERT INTO oauth2_registered_client(id, client_id, client_id_issued_at, client_secret, client_secret_expires_at, client_name, client_authentication_methods, authorization_grant_types, redirect_uris, post_logout_redirect_uris, scopes, client_settings, token_settings)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, to_json(?::json), to_json(?::json))"""
|
||||
|
||||
class InsertDatabaseHelper(private val template: JdbcTemplate) {
|
||||
|
Loading…
Reference in New Issue
Block a user