Skip to content

Commit 4bded62

Browse files
committed
Fix escape string for sqlite
1 parent 42f130c commit 4bded62

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

SQLite.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
class SQLite extends SQL
66
{
7-
protected $escapeValue = false;
7+
protected $escapeValue = true;
88
protected $identifierQuotes=array("`","`");//For table name and column name
9+
10+
protected function escapeString($string)
11+
{
12+
if($this->escapeValue) {
13+
return str_replace("'","''",$string);
14+
}
15+
return $string;
16+
}
917
}

0 commit comments

Comments
 (0)