"REPLACE" is a "DB_WRITE" action

This commit is contained in:
Jens Frank 2004-04-27 05:44:55 +00:00
parent 7f07ad70b7
commit ca3ee3e3a1

View file

@ -130,7 +130,7 @@ class MathRenderer {
$md5_sql = wfStrencode( pack("H32", $this->md5) ); # Binary packed, not hex
$sql = "REPLACE INTO math VALUES ('".$md5_sql."', '".$outmd5_sql."', ".$this->conservativeness.", ".$sql_html.", ".$sql_mathml.")";
$res = wfQuery( $sql, DB_READ, "MathRenderer::render" );
$res = wfQuery( $sql, DB_WRITE, "MathRenderer::render" );
# we don't really care if it fails
}