OSDN Git Service

add instrumentation to log the sql statement + bindargs + databasename
authorVasu Nori <vnori@google.com>
Sat, 30 Jan 2010 00:24:23 +0000 (16:24 -0800)
committerVasu Nori <vnori@google.com>
Tue, 2 Feb 2010 07:05:33 +0000 (23:05 -0800)
commit4dd4ab4cc322e82401f380aeb877daa4a20d7069
treea8391213899cdbe298b446502d7430e3327fe5d1
parent6eb7c45a8fdb774c4094b5012c8496f2a009c032
add instrumentation to log the sql statement + bindargs + databasename

capture the sql statement along with the bindargs passed in. this will help
one to see the sql statements being executed and hopefully will help
debug incorrect-sql bugs.
core/java/android/database/sqlite/SQLiteDatabase.java
core/java/android/database/sqlite/SQLiteDebug.java
core/java/android/database/sqlite/SQLiteProgram.java
core/java/android/database/sqlite/SQLiteStatement.java
core/tests/coretests/src/android/database/sqlite/SQLiteDebugTest.java [new file with mode: 0644]