[Bucardo-general] [SOLVED] b5 / pg84 : "arguments of row IN must all be row expressions"
Greg Sabino Mullane
greg at endpoint.com
Sat Sep 29 03:06:59 UTC 2012
On Fri, Sep 28, 2012 at 11:26:37AM -0400, Bill McGonigle wrote:
...
> I think what we need here is a way for join('\0',(''))
> to respect the leading whitespace
I played with this a bit. The easiest way is to simply add
another element to the array before joining it, via unshift, and
then making sure you shift the resulting post-split array. However,
that leaves too much of a foot-gun around as we would be slinging
those hashrefs full of pumped-up arrayrefs around, and it would be
too easy to forget that they are magical and need their first
element stripped. So, I simply made special ternary operator
tests when breaking apart the string, such that a string of zero
length is always equal to [''].
Long story short, give a1e344482df178c8fb29373ace7f945ab65984ed
a try. :)
--
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20120928/da5a7beb/attachment.sig>
More information about the Bucardo-general
mailing list