[DataControl] Nullable parameters 03/104803/2
authorMateusz Bruno-Kaminski <m.bruno2@samsung.com>
Tue, 13 Dec 2016 15:41:29 +0000 (16:41 +0100)
committerHyunjin Park <hj.na.park@samsung.com>
Thu, 15 Dec 2016 02:44:55 +0000 (11:44 +0900)
[Details] Changed parameters of SQLDataControlConsumer.select() to match the documentation.

[verification] web tct result is 100% passed.

Change-Id: I0dce52927f7644c492d53beaa983da0a56fd3fde
Signed-off-by: Mateusz Bruno-Kaminski <m.bruno2@samsung.com>
src/datacontrol/datacontrol_api.js

index 5583184ce48a128648598482805d6d3e8436e5bb..108f57cce759f63748c951ca2fa53685b6074186 100755 (executable)
@@ -247,8 +247,8 @@ SQLDataControlConsumer.prototype.select = function(reqId, columns, where, succes
     {'name': 'where', 'type': types_.STRING},
     {'name': 'successCallback', 'type': types_.FUNCTION},
     {'name': 'errorCallback', 'type': types_.FUNCTION, optional: true, nullable: true},
-    {'name': 'page', 'type': types_.LONG, optional: true},
-    {'name': 'maxNumberPerPage', 'type': types_.LONG, optional: true},
+    {'name': 'page', 'type': types_.LONG, optional: true, nullable: true},
+    {'name': 'maxNumberPerPage', 'type': types_.LONG, optional: true, nullable: true},
     {'name': 'order', 'type': types_.STRING, optional: true, nullable: true}
   ]);