From: Ian B. <ia...@co...> - 2004-12-06 22:15:45
|
Oleg Broytmann wrote: > What is so obviously broken here? Looks pretty good for me. > > def tableExists(self, tableName): > # @@: obviously broken > result = self.queryOne("SELECT COUNT(relname) FROM pg_class WHERE relname = '%s'" > % tableName) > return result[0] I don't think I put that comment in there; I didn't originally write the Postgres code. The "'%s'" % tableName is bad, though. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |