Re: [pgadmin-hackers] inconsistent sql template path resolving

2017-01-23 Thread Atira Odhner
Nevermind, I think I figured it out. Some templates are resolved on 9.5_plus etc. On Mon, Jan 23, 2017 at 3:31 PM, Atira Odhner wrote: > Hello fellow pgadmin hackers, > > I was taking a look at some version-checking code and I noticed some > inconsistencies in how we are picking what sql file to

[pgadmin-hackers] inconsistent sql template path resolving

2017-01-23 Thread Atira Odhner
Hello fellow pgadmin hackers, I was taking a look at some version-checking code and I noticed some inconsistencies in how we are picking what sql file to run: ver = self.manager.version if ver >= 90200: self.template_path = 'exclusion_constraint/sql/9.2_plus' elif ver >= 90100: self.templ