From: Karl O. P. <ko...@me...> - 2013-02-19 01:57:33
|
On 02/18/2013 06:27:46 PM, Jehan-Guillaume (ioguix) de Rorthais wrote: > We can not know what was the original input format. So in my opinion, > we > should add a parameter to handle bytea_output in config.inc.php and > make > this a user decision. Presently, we just force it to 'hex' and > corrupt > it on the way. The other option is to pick 'hex' (thus, keep using > pg_escape_bytea), but fix the way we print it. Hex is the canonical pg representation so IMHO we will at least want the option to display/edit in hex. Since we're doing hex anyway then for the moment just do everything in hex. Later a config parameter can be added (if we want to go there) if some other external representation is desired. (Frankly, since there are virtually an infinite number of things that could be encoded in bytea having a fixed list of acceptable external representation does not make sense. If the user wants to display their binary data in a certain way then ppa should have have a plugin architecture that hand the job off to something outside of ppa.) Karl <ko...@me...> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein |