public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dave Page <[email protected]>
To: Sanket Mehta <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: PATCH: PGADMIN 4 - FTS templates node
Date: Thu, 7 Apr 2016 10:09:54 +0100
Message-ID: <CA+OCxoxtJ5hqAzVADHP-+49PCFqb-xiSeQtGfYjSeK2wcKvnmA@mail.gmail.com> (raw)
In-Reply-To: <CA+yw=mMzgpzGoLu=zgg-c3Zeo59=LMAXi4D73dX5Pp-M9h_4bg@mail.gmail.com>
References: <CA+yw=mMx=HsY2K01bQmdh6i+E4hUKJJM+KZWW_4B0AhB-O8cPw@mail.gmail.com>
	<CA+yw=mNfEV51SFb6h1nb23mFD94D0HqRDyMqYE5XwuSy8DOvug@mail.gmail.com>
	<CA+OCxozUe1K9V-JF3HQ+Aj8gdEep8xhxD-GxrdkUB_k11eu55w@mail.gmail.com>
	<CA+yw=mNuzL-ZOPhN2HeM=4X5TZKjyLi+r4SXqvtfNdGo32SyhA@mail.gmail.com>
	<CA+yw=mMXCnte6_yLEgW-HKbSAa5ZhLVF1U9gr6VYwKfch3eoPQ@mail.gmail.com>
	<CA+yw=mO_GC-jPtngf1AChkWKGfU6gVG3Ag0RP3aEeLnHvV8mCA@mail.gmail.com>
	<CA+OCxoyZ68sU+hLm=THSd8afjAAxLZ0fB0fj-vtLPNvwABL-WA@mail.gmail.com>
	<CA+yw=mPy7QqwWiR-MzMqyd+Zyjca1OBZuD5k_Z+CH6ore1A-vA@mail.gmail.com>
	<CA+OCxoz+TiEg+Z3jKu6ccFf7YX7Wp71eSzr+mvefwwqdkPz5-g@mail.gmail.com>
	<CA+yw=mPxLmmpOb4TkfMr+d_WqEPJQEcCS2werBosy0kG0mj2kw@mail.gmail.com>
	<CA+OCxoz1aNKF_WJ=yexAiCf-E7uVpWj9EeEFm9+FcOqDVRajng@mail.gmail.com>
	<CA+yw=mMzgpzGoLu=zgg-c3Zeo59=LMAXi4D73dX5Pp-M9h_4bg@mail.gmail.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Hi

On Mon, Mar 28, 2016 at 10:01 AM, Sanket Mehta
<[email protected]> wrote:
> Hi Dave,
>
> I have found out the root cause of this issue.
>
> This issue is occurring at your side as you are using python 2.7 so in that
> case sql query returned from sql template is of type 'unicode'.
> And in __init__.py file we have checked if the sql query is of string type
> then only we would proceed further.
>
> I was not getting this issue as I was using python 3.0
>
> I have resolved this issue and some other typo errors in comments and patch
> is attached with this mail.
>
> Please do review it and let me know in case of any issues.

Did you send the right patch? I'm still getting the error
(specifically, when rendering update.sql, render_template throws an
exception "can't adapt type 'Undefined'")

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers



view thread (14+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: PATCH: PGADMIN 4 - FTS templates node
  In-Reply-To: <CA+OCxoxtJ5hqAzVADHP-+49PCFqb-xiSeQtGfYjSeK2wcKvnmA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox