[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax|Parse error on code that used to run
From: |
richard |
Subject: |
Re: Syntax|Parse error on code that used to run |
Date: |
Fri, 28 Mar 2014 17:34:38 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Mar 28, 2014 at 11:53:16AM -0400, Mike Miller wrote:
> On Fri, Mar 28, 2014 at 06:52:30 +0000, richard wrote:
> > Y = ["(","'" E00"'",];
>
> The lack of a space between a variable and subsequent quoted string
> did work in 3.6 and doesn't seem to work in 3.8. I can't say whether
> this was intentional or not.
>
> In 3.6, this worked
>
> x = "foo";
> y = ["(","'" x"'"];
>
> but not without the space in front of the variable as in
>
> x = "foo";
> y = ["(","'"x"'"];
>
> In 3.8, either a space or a comma is needed on both sides of the
> variable separating it from the strings you are contatenating it with:
>
> x = "foo";
> y = ["(","'" x "'"];
>
> or
>
> y = ["(","'",x,"'"];
>
> As I said, I can't say whether this was intentional, but it certainly
> looks like an improvement to me.
>
> HTH,
>
Thanks Mike, I just got there myself with this. I am not yet absolutely sure
that the database (ie postgresql) is happy with the change, and I could
not be sure that the problem wasn't something specific to my system.
Out of curiousity, why do you think the change is an improvement?
Richard