id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 967,[patch] Safe quoting of table names,freakboy@…,Adrian Holovaty,"A discussion on [http://groups.google.com/group/django-users/browse_thread/thread/a0e67d2df7d344c0/35ce231d69cf0e9a#35ce231d69cf0e9a this thread of django-users] lead to the suggestion that the contents provided to the ""tables"" kwarg of a database query should be optionally quoted (as happens for the ""select"" kwarg), rather the being arbitrarily quoted. This would allow the use of subselect clauses in the ""tables"" kwarg. This patch moves the declaration of the 'safe quoting' function quote_only_if_word() a little earlier in its parent function, and uses the safe quoter on the contents of the tables clause. Existing usage of nominating a table name in the tables=[] list is unaffected, as table names will not have spaces, and will therefore continue to be quoted. ",enhancement,closed,"Database layer (models, ORM)",,minor,fixed,tables database safe quote quoting,,Unreviewed,1,0,0,0,0,0