transientskp / tkp

A transients-discovery pipeline for astronomical image-based surveys
http://docs.transientskp.org/
BSD 2-Clause "Simplified" License
19 stars 15 forks source link

Issue 476, resolving test_alchemy #482

Open bartscheers opened 9 years ago

bartscheers commented 9 years ago

The SQL median function in MonetDB, is called by prefixing it with sys.

gijzelaerr commented 9 years ago

hm I think there must be a more elegant solution for this.

gijzelaerr commented 9 years ago

So I don't know it off hand yet, but I don't like to have engine specific code in the query. That is one of the nice things of SQLAlchemy. Maybe we can make an aliased function that is handled by the dialect in the engine specific way, but leave the query itself engine neutral.

bartscheers commented 9 years ago

Right, it just needs to set somewhere else then.