2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-31 14:25:30 +00:00
This commit is contained in:
Jay07GIT
2022-04-21 17:38:00 +05:30
parent a5bb7d0c54
commit d06dd56fd4

View File

@@ -51,7 +51,7 @@ class MySqlRecordSetDataRepository
| WHERE zone_id = {zone_id}
""".stripMargin
private val BASE_FIND_RECORDSETS_BY_FQDNS =
private val BASE_FIND_RECORDSETDATALIST_BY_FQDNS =
"""
|SELECT recordset.data, recordset_data.fqdn
| FROM recordset_data
@@ -361,7 +361,7 @@ class MySqlRecordSetDataRepository
DB.readOnly { implicit s =>
val namesList = names.toList
val inClause = " IN (" + namesList.as("?").mkString(",") + ")"
val query = BASE_FIND_RECORDSETS_BY_FQDNS + inClause
val query = BASE_FIND_RECORDSETDATALIST_BY_FQDNS + inClause
SQL(query)
.bind(namesList: _*)
.map(toRecordSetData)