php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57036 ingres_query doesn't accept procedures
Submitted: 2006-05-24 11:04 UTC Modified: 2017-01-29 04:22 UTC
From: jurvillier at inrets dot fr Assigned: grantc (profile)
Status: No Feedback Package: ingres (PECL)
PHP Version: 5.1.2 OS: Sun OS 5.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jurvillier at inrets dot fr
New email:
PHP Version: OS:

 

 [2006-05-24 11:04 UTC] jurvillier at inrets dot fr
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)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-31 12:21 UTC] grantc@php.net
Does not reproduce with Ingres 3.0 DBMS. I will have a look at a 2.5 back-end tomorrow.
 [2017-01-20 20:54 UTC] heiglandreas@php.net
-Status: Assigned +Status: Feedback
 [2017-01-20 20:54 UTC] heiglandreas@php.net
Is this still relevant?
 [2017-01-29 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Oct 21 05:01:27 2019 UTC