You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get error:
{code}
invalid request BLR at offset 204
context already in use (BLR error)
GDSCODE = 335544343
SQLCODE = -104
{code}
when try to execute this query:
{code:sql}
with info as (
select
iif(1 in (select 1 as x from rdb$database), 1, 0) as flag
from rdb$database
)
select
iif(info.flag > 0, 1, 1) as a,
iif(info.flag > 0, 1, 1) as b,
0 as c
from info
{code}
This query works fine
- on Firebird 2.5.
- if you comment line with param `a` or param `b` (only one of them).
The text was updated successfully, but these errors were encountered:
description: I get error:
```
invalid request BLR at offset 204
context already in use (BLR error)
GDSCODE = 335544343
SQLCODE = -104
```
when try to execute this query:
```
with info as (
select
iif(1 in (select 1 as x from rdb$database), 1, 0) as flag
from rdb$database
)
select
iif(info.flag > 0, 1, 1) as a,
iif(info.flag > 0, 1, 1) as b,
0 as c
from info
```
This query works fine
- on Firebird 2.5.
- if you comment line with param `a` or param `b` (only one of them).
=>
I get error:
{code}
invalid request BLR at offset 204
context already in use (BLR error)
GDSCODE = 335544343
SQLCODE = -104
{code}
when try to execute this query:
{code:sql}
with info as (
select
iif(1 in (select 1 as x from rdb$database), 1, 0) as flag
from rdb$database
)
select
iif(info.flag > 0, 1, 1) as a,
iif(info.flag > 0, 1, 1) as b,
0 as c
from info
{code}
This query works fine
- on Firebird 2.5.
- if you comment line with param `a` or param `b` (only one of them).
> You realize that you have the same expression for both a and b?
Strange question. Of course I realize that. And I realise, that this error occurs only when both of a and b are used (or, to be specific, that second use the `flag` is cause of error).
> What happens if you change iif(info.flag > 0, 1, 1) as b to iif(info.flag < 0, 1, 1) as b ?
Nothing changes.
Indeed, if you left only `flag` without `iif()` statement, error will occur.
I tested this query:
with info as (
select
iif(1 in (select 1 as x from rdb$database), 1, 0) as flag
from rdb$database
)
select
info.flag as a,
info.flag as b,
0 as c
from info
Submitted by: Artem Anufriev (atronah)
I get error:
{code}
invalid request BLR at offset 204
context already in use (BLR error)
GDSCODE = 335544343
SQLCODE = -104
{code}
when try to execute this query:
{code:sql}
with info as (
select
iif(1 in (select 1 as x from rdb$database), 1, 0) as flag
from rdb$database
)
select
iif(info.flag > 0, 1, 1) as a,
iif(info.flag > 0, 1, 1) as b,
0 as c
from info
{code}
This query works fine
- on Firebird 2.5.
- if you comment line with param `a` or param `b` (only one of them).
The text was updated successfully, but these errors were encountered: