From 690f4d4b3fb5323cc8d558e466370b54cce78c36 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 17 Sep 2015 22:07:37 +0300 Subject: [PATCH] Finally rename `where?` to whereSimple() --- dsl/static/src/common/SelectQueryBuilder.kt | 6 +++--- dsl/static/src/common/UpdateQueryBuilder.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dsl/static/src/common/SelectQueryBuilder.kt b/dsl/static/src/common/SelectQueryBuilder.kt index 5eb2179f..083e1742 100644 --- a/dsl/static/src/common/SelectQueryBuilder.kt +++ b/dsl/static/src/common/SelectQueryBuilder.kt @@ -157,7 +157,7 @@ public class SelectQueryBuilder(val db: SQLiteDatabase, val tableName: String) { return this } - public fun `where?`(select: String, vararg args: String): SelectQueryBuilder { + public fun whereSimple(select: String, vararg args: String): SelectQueryBuilder { if (selectionApplied) { throw AnkoException("Query selection was already applied.") } @@ -169,8 +169,8 @@ public class SelectQueryBuilder(val db: SQLiteDatabase, val tableName: String) { return this } - @deprecated("Use `where?`() instead", replaceWith = ReplaceWith("`where?`(select, *args)")) + @Deprecated("Use whereSimple() instead", replaceWith = ReplaceWith("whereSimple(select, *args)")) public fun whereSupport(select: String, vararg args: String): SelectQueryBuilder { - return `where?`(select, *args) + return whereSimple(select, *args) } } \ No newline at end of file diff --git a/dsl/static/src/common/UpdateQueryBuilder.kt b/dsl/static/src/common/UpdateQueryBuilder.kt index 66bc0aa1..03f2a52b 100644 --- a/dsl/static/src/common/UpdateQueryBuilder.kt +++ b/dsl/static/src/common/UpdateQueryBuilder.kt @@ -55,7 +55,7 @@ public class UpdateQueryBuilder( return this } - public fun `where?`(select: String, vararg args: String): UpdateQueryBuilder { + public fun whereSimple(select: String, vararg args: String): UpdateQueryBuilder { if (selectionApplied) throw AnkoException("Query selection was already applied.") @@ -66,9 +66,9 @@ public class UpdateQueryBuilder( return this } - @Deprecated("Use `where?`() instead", replaceWith = ReplaceWith("`where?`(select, *args)")) + @Deprecated("Use whereSimple() instead", replaceWith = ReplaceWith("whereSimple(select, *args)")) public fun whereSupport(select: String, vararg args: String): UpdateQueryBuilder { - return `where?`(select, *args) + return whereSimple(select, *args) } public fun exec(): Int {