bug fixed for sqlite3 & oracle dialect