Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2007, 09:35 PM
Greg Copeland
Guest
 
Posts: n/a
Default SQLAlchemy and Oracle Functions?

I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?

Thanks,

Greg

  #2  
Old March 8th, 2007, 09:45 PM
Giles Brown
Guest
 
Posts: n/a
Default Re: SQLAlchemy and Oracle Functions?

On 8 Mar, 22:19, "Greg Copeland" <gtcopel...@gmail.comwrote:
Quote:
I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?
>
Thanks,
>
Greg
http://www.sqlalchemy.org/docs/sqlco...ause_functions
?

SQLAlchemy has its own google group

http://groups.google.co.uk/group/sqlalchemy

You could try asking there too.

Giles

  #3  
Old March 8th, 2007, 10:05 PM
Greg Copeland
Guest
 
Posts: n/a
Default Re: SQLAlchemy and Oracle Functions?

On Mar 8, 3:35 pm, "Giles Brown" <giles_br...@hotmail.comwrote:
http://www.sqlalchemy.org/docs/sqlco...whereclause_fu...
Quote:
SQLAlchemy has its own google group
>
http://groups.google.co.uk/group/sqlalchemy
>
You could try asking there too.
>
Giles
Very nice. That exactly answered by question. It works! Also, I
didn't know about the sqlalchemy group so I appreciate the heads up.

Thanks,

Greg


  #4  
Old March 8th, 2007, 10:35 PM
Greg Copeland
Guest
 
Posts: n/a
Default Re: SQLAlchemy and Oracle Functions?

On 8 Mar, 15:35, "Giles Brown" <giles_br...@hotmail.comwrote:
Quote:
On 8 Mar, 22:19, "Greg Copeland" <gtcopel...@gmail.comwrote:
>
Quote:
I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly on that?
>
Quote:
Thanks,
>
Quote:
Greg
>
http://www.sqlalchemy.org/docs/sqlco...whereclause_fu...
?
>
SQLAlchemy has its own google group
>
http://groups.google.co.uk/group/sqlalchemy
>
You could try asking there too.
>
Giles

I think I spoke too soon! Are SQL functions which have out arguments
not allowed? I get:
sqlalchemy.exceptions.SQLError: (DatabaseError) ORA-06572: Function
blah has out arguments.

Seems google is having problems right now too. I tried to join but it
just times out so I am currently unable to post to the sqlalchemy
google group.

Anthing special I need to do to call an Oracle function via the func
method, which also has output parameters?


Greg

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles