Re: same code same tables but not the same result(use flask and postgres)

2014-07-09 Thread Frank Liou
oh by the way one of database version is postgres 80420 another is 90304 80420 is fine but 90304 is so strange -- https://mail.python.org/mailman/listinfo/python-list

Re: same code same tables but not the same result(use flask and postgres)

2014-07-09 Thread Frank Liou
Hi ChrisA i use same workspace all the same python 3.3 -- https://mail.python.org/mailman/listinfo/python-list

Re: same code same tables but not the same result(use flask and postgres)

2014-07-09 Thread Chris Angelico
On Wed, Jul 9, 2014 at 5:14 PM, Frank Liou wrote: > one i got > > MTIzNDU2Nzg= <==it's right > > anoter i got > > \x4d54497a4e4455324e7a673d Encode that string as ASCII and represent the bytes in hexadecimal, and you get the second one. My guess is that maybe you have one of them running Python

same code same tables but not the same result(use flask and postgres)

2014-07-09 Thread Frank Liou
i use flask connect to postgres def post_insert(username): conn = engine.connect() encoded = base64.b64encode(username.encode('utf-8')) puresql = sqla.text("INSERT INTO friends(name) VALUES(:encoded)") conn.execute(puresql,encoded = encoded) i insert username encode with base64 t