Thanks,
using OCI_ASSOC, I just need to write :
SELECT mytable1.id AS id, mytable2.id AS id2
instead of
SELECT mytable1.id, mytable2.id
Thierry Bothorel
--
Click here to answer / cliquez ci dessous pour me repondre
http://cerbermail.com/?7O7SOrggJg
"Andy Hassall" <andy@andyh.co.uk> a écrit dans le message de news:
etkc205dn5fdh56lckn2940ocvooodd6di@4ax.com...
[color=blue]
> Unique identifiers for each column within a result set is certainly the[/color]
way to[color=blue]
> go, but just testing out whether it does lose data:
>
>
> The second identically named column isn't lost. Most of the PHP OCI8[/color]
functions[color=blue]
> work using bind by name, rather than position, but the data is still[/color]
there.[color=blue]
>
> If you fetch into an associative array by name, clearly it can only keep[/color]
one[color=blue]
> of the values. (Although this could be better documented - can't spot a
> reference from a quick read through). And the code above shows an[/color]
inconsistency[color=blue]
> between OCIResult and OCIFetchInto as to which one it picks in the case of
> identical identifiers (which is almost certainly a bug).
>
> --
> Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
> <http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>[/color]