Re: [cx-oracle-users] New features?
Brought to you by:
atuining
From: Chris G. <chr...@to...> - 2016-01-27 17:35:45
|
Thanks, yes I think I saw that before. But it'd still be nicer if it were built in to the driver (as it is in PHP) On 27 January 2016 at 17:21, Amaury Forgeot d'Arc <ama...@gm...> wrote: > Hi Chris, > > 2016-01-27 18:02 GMT+01:00 Chris Gould <chr...@to...>: > >> Hi Anthony - >> I'm not an expert Python programmer, but I do find Python and the >> cx_Oracle driver extremely useful in my job as a PL/SQL programmer. >> >> One thing which would be extremely useful is if the columns returned by a >> query could be referenced by their column names rather than their offset >> number. Is that something that could be done easily? >> >> I also use PHP a bit and I know there it's possible to choose either to >> reference the returned columns by name or offset, and it makes the code >> much easier to follow when you're using column names. >> > > Someone asked this several years ago already, here is a solution with a > custom cursor.rowfactory: > http://sourceforge.net/p/cx-oracle/mailman/message/27145597/ > > > -- > Amaury Forgeot d'Arc > |