[sqlalchemy] SELECT executemany

2007-10-03 Thread Paul Kippes
Is there some other way I can execute a query using a list as a bound parameter? res = db.db_con.text('SELECT module_extra_key_name FROM module_extra_keys WHERE module_id IN :module_ids').execute({'module_ids': [1,2]}) The above is giving me an You cannot execute SELECT statements in

[sqlalchemy] Failures with AssociationProxy (starting with r2598)

2007-06-12 Thread Paul Kippes
Starting with r2598, I'm seeing some failures with how I'm using the association proxy. I've modified the examples/association/proxied_association.py file which duplicates the problem. It is possible that I'm not suppose to remove associations like I am. But it did work before (in 0.3.7 and

[sqlalchemy] Re: Failures with AssociationProxy (starting with r2598)

2007-06-12 Thread Paul Kippes
ticket #597 for this. On Jun 12, 2:22 am, Paul Kippes [EMAIL PROTECTED] wrote: Starting with r2598, I'm seeing some failures with how I'm using the association proxy. I've modified the examples/association/proxied_association.py file which duplicates the problem. It is possible that I'm

[sqlalchemy] Re: PROPOSAL: whack query.select(), selectfirst(), selectone(), select_by(), selectfirst_by(), selectone_by(), get_by(), auto-join feature

2007-06-04 Thread Paul Kippes
These sound like a good progression of the library. Would there be a way to turn on warnings if one were to use a deprecated interface? Or if the programmer wants to be even more strict, raise an exception? This wouldn't be the default, but rather an available option.

[sqlalchemy] Changing my SQLAlchemy include point

2007-06-04 Thread Paul Kippes
First, let me admit that I'm not an expert at Python. I'm trying to test the newer versions of SQLAlchemy before I install it on my server. According to http://docs.python.org/inst/search-path.html, the PYTHONPATH should add paths to the beginning of sys.path. The docs at

[sqlalchemy] Re: new setuptools vs local SA copy

2007-06-04 Thread Paul Kippes
I found the thread about PYTHONPATH--interesting. It does seem that eggs are not only preventing the expected behavior, but they are also preventing the documented behavior. However, I don't think that using eggs is the best choice for a fast progressing library like SQLAlchemy--especially with

[sqlalchemy] Error starting with revision 2620

2007-05-23 Thread Paul Kippes
I have a query that started to fail with r2620. Here is a portion on the code and the exception that was thrown. I've tested against the most current revision and that also fails. Is this something I'm doing wrong or a real bug? --Thanks, Paul in_sql =

[sqlalchemy] Re: Is ILIKE supported?

2007-04-05 Thread Paul Kippes
Michael, I certainly understand why this hasn't been added. With some databases like sqlite, a case sensitive search isn't even possible. This is much more complicated that I would have imagined. --~--~-~--~~~---~--~~ You received this message because you are

[sqlalchemy] Adding support for ESCAPE

2007-04-04 Thread Paul Kippes
Currently sqlalchemy doesn't support a query like this: SELECT my_name FROM names WHERE my_name LIKE 'larry\_%' ESCAPE '\' Could such a feature be added to be used in a similar way to the LIMIT feature? It looks like a simple enough patch for me to do. But I don't have knowledge of the array

[sqlalchemy] Re: Adding support for ESCAPE

2007-04-04 Thread Paul Kippes
it going to do to that \ ?) ? what DB is this ? can this same functionality be achieved via bind parameters ? On Apr 4, 2007, at 10:30 AM, Paul Kippes wrote: Currently sqlalchemy doesn't support a query like this: SELECT my_name FROM names WHERE my_name LIKE 'larry\_%' ESCAPE '\' Could

[sqlalchemy] Re: Adding support for ESCAPE

2007-04-04 Thread Paul Kippes
. then an explicit visit_like() would be added to ansisql.py to process the construct as well as the optional escapes keyword argument. otherwise, please add a new enhancement ticket to trac (via the bugs link on the site) and we'll get it in the queue. On Apr 4, 2007, at 12:34 PM, Paul Kippes

[sqlalchemy] Is ILIKE supported?

2007-04-04 Thread Paul Kippes
In my version of sqlalchemy I didn't find any ability for ILIKE. Is this supported? If a patch is needed, would a new operator ilike be okay? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To

[sqlalchemy] Changing the order_by with Result-Set mapping

2007-04-03 Thread Paul Kippes
I'm finally getting a bit more at ease with the more complex aspects of SQLAlchemy. But yet again, I still need some help. Now I'm trying to change the ordering from my mapper's default. My Signal mapper was defined to order by the signal_name (using an AssociationProxy). That has been

[sqlalchemy] Subselect is preventing additional where conditions--help

2007-03-30 Thread Paul Kippes
I'm trying to create a subselect that has a where condition using an identically named column as the outer select. I'm not able to figure out how to tell SQLAlchemy that I need two parameters--one for each query. Here is what my SQL would look like if I wrote it by hand: SELECT signals.*