note 85807 added to function.mysql-query

From: Date: Thu, 18 Sep 2008 18:42:23 +0000
Subject: note 85807 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-144518@lists.php.net to get a copy of this message
It should be noted that mysql_query can generate an E_WARNING (not documented). The warning that I hit was when the db user did not have permission to execute a UDF. Expected behavior would be like an Invalid SQL statement, where there is no E_WARNING generated by mysql_query. Warning: mysql_query() [function.mysql-query]: Unable to save result set in filename.php The mysql_errno is 1370 and the mysql_error is: execute command denied to user 'username'@'%' for routine 'database_name.MyUDF' ---- Server IP: 209.41.74.194 Probable Submitter: 209.131.110.225 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-query.php Edit -- https://master.php.net/note/edit/85807 Del: integrated -- https://master.php.net/note/delete/85807/integrated Del: useless -- https://master.php.net/note/delete/85807/useless Del: bad code -- https://master.php.net/note/delete/85807/bad+code Del: spam -- https://master.php.net/note/delete/85807/spam Del: non-english -- https://master.php.net/note/delete/85807/non-english Del: in docs -- https://master.php.net/note/delete/85807/in+docs Del: other reasons-- https://master.php.net/note/delete/85807 Reject -- https://master.php.net/note/reject/85807 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144518) next »