Hello

Sorry for this newbie question but inside a controller I've have three
continuous calls a oracle sequence nextval.

for example:
                $opd = $this->Usuario->query("select
pn_object_sequence.nextval  from dual");
                pr($opd);
                $pid[1] = $opd['0']['0']['dual'];
                $opd = $this->Usuario->query("select
pn_object_sequence.nextval  from dual");
                pr($opd);
                $pid[2] = $opd['0']['0']['dual'];
                $opd = $this->Usuario->query("select
pn_object_sequence.nextval  from dual");
                pr($opd);
                $pid[3] = $opd['0']['0']['dual'];

Well,the problem is shown by the pr :
Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [dual] => 1146948
                )

        )

)

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [dual] => 1146948
                )

        )

)

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [dual] => 1146948
                )

        )

)

As you see I always take the first call value.
I'm not sure if it is related to some cache or how can I avoid this
because,
I really need 'to pass' the sequence itself.

Thank you in advance for your ideas.

JB

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to