note 130519 added to pdo-sqlite.createfunction

From: Date: Thu, 16 Oct 2025 05:42:09 +0000
Subject: note 130519 added to pdo-sqlite.createfunction
Groups: php.notes 
Request: Send a blank email to php-notes+get-222385@lists.php.net to get a copy of this message
if you intend to use the function in WHERE expressions. Absolutely, absolutely!!! Specify equality. Example: function my_function() { if (/** condition */) { /** code... */ } return false; } "SELECT * FROM _table WHERE my_function() = 1" If this is not done, then hallucinations with sampling begin. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 217.107.125.62) ---- Manual Page -- https://php.net/manual/en/pdo-sqlite.createfunction.php Edit -- https://main.php.net/note/edit/130519 Del: integrated -- https://main.php.net/note/delete/130519/integrated Del: useless -- https://main.php.net/note/delete/130519/useless Del: bad code -- https://main.php.net/note/delete/130519/bad+code Del: spam -- https://main.php.net/note/delete/130519/spam Del: non-english -- https://main.php.net/note/delete/130519/non-english Del: in docs -- https://main.php.net/note/delete/130519/in+docs Del: other reasons-- https://main.php.net/note/delete/130519 Reject -- https://main.php.net/note/reject/130519 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222385) next »