-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 6 Feb 2009 19:37:28 +0530
Gurjeet Singh <gurjeet.si...@enterprisedb.com> wrote:


> >
> Hmm.. Although that is doable, I haven't thought about that. The way
> I saw it was that we'd have a IF(ORACLE) CONNECT BY ELSE IF(POSTGRES)
> CALL FUNCTION END kinda code...
> 
> Thinking a bit, I don't see a point in porting this to Oracle! The
> calling syntax will be different for both the databases anyway:
> Oracle:
>   select x,y from TABLE( function() );
> Postres:
>   select x, y from function() as f( x int, y int).
> 
> So I guess we will _have_ to keep two versions of the query at least
> in the python code. The other usage in PL/SQL package is anyway going
> to be ported over.
> 
> Best regards,

Ok this is something we'll need to be very careful with. We kinda knew
this was coming (having to fork queries for each database) but we'll
need to plan ahead for this on our end. The python queries are all just
variables in the source so it's probably in our best interest to setup
a quick framework for using one set of queries by default, and allowing
them to be overridden depending on your database backend. I will add
this to my TODO list.

However if anything occurs to you for a way we can keep the query
static for both databases that would be great!

Cheers,

Devan


- -- 
  Devan Goodwin <dgood...@redhat.com>
  Software Engineer     Spacewalk / RHN Satellite
  Halifax, Canada       650.567.9039x79267
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkmMRzwACgkQAyHWaPV9my4WIACfcIsfWWUo9XVnQC00E4ILgQyK
cxYAoINtsaE6bM+5YXJatbIynLCV/X7r
=rC9y
-----END PGP SIGNATURE-----

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to