|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-31 12:21 UTC] grantc@php.net
[2017-01-20 20:54 UTC] heiglandreas@php.net
-Status: Assigned
+Status: Feedback
[2017-01-20 20:54 UTC] heiglandreas@php.net
[2017-01-29 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 13:00:01 2025 UTC |
Description: ------------ Description: ------------ Using : INGRES_EXT_VERSION : 1.2.1 INGRES_API_VERSION : 4 version.rel on client (web server) : II 3.0.2 (su9.us5/109) version.rel on ingres server machine : II 2.5/0011 (su4.us5/00) 8908 php : PHP Version 5.1.4 (and not 5.1.2 as said upper, no fresher version choosable) Call of a procedure is alqays in error. The same call of procedure, with the same (db,user) executes normally in sql usual interface (isql for example). Reproduce code: --------------- A call like : ingres_query("execute procedure modif_chrono( nom_aut='BAR', rubrique='annonces:',titre='Compte-rendu', lien='http://intranet.inrets.fr/CR_5fev2003.htm',ref='03006') answers in error : Warning: ingres_query() [function.ingres-query]: Ingres error : 135186 : An attempt to place a null value in a non-nullable datatype. in ../lib/functions.inc.php on line 57 Warning: ingres_query() [function.ingres-query]: Ingres SQLSTATE : 5000A in ../lib/functions.inc.php on line 57 Definition of the procedure : create procedure modif_chrono ( nom_aut char(30), rubrique char(32), titre varchar(120), lien varchar(200) with null, ref char(5)) as declare rub char(2) not null; chaine varchar(200) not null; begin rub = right(trim(rubrique),2); update "juju". chrono_note_cir set rubrique = :rub, auteur = :nom_aut, titre = :titre, lien = :lien where num = int2(right(ref,3)) and an = left(ref,2); end (a bit crazy procedure, but I have an identical pb with another 4 statements procedure)