From: | Matthias Apitz <guru(at)unixarea(dot)de> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org, bryan(dot)w(dot)staley(at)gmail(dot)com |
Subject: | Re: BUG #16941: ECPG add support for const void* |
Date: | 2021-03-24 05:36:53 |
Message-ID: | YFrP9fZsYKwoskCa@c720-r368166.fritz.box |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
El día martes, marzo 23, 2021 a las 04:07:01p. m. +0000, PG Bug reporting form escribió:
> The following bug has been logged on the website:
>
> Bug reference: 16941
> Logged by: Bryan Staley
> Email address: bryan(dot)w(dot)staley(at)gmail(dot)com
> PostgreSQL version: 13.1
> Operating system: RHEL 7
> Description:
>
> The following doesn't compile via ecpg
>
> ```
> EXEC SQL BEGIN DECLARE SECTION;
> static const char[2] TEST = "F";
> EXEC SQL END DECLARE SECTION;
> ```
>
> Fails with
> error: invalid conversion from 'const void*' to 'void*'
>
This would not even compile:
$ cc -v
FreeBSD clang version 11.0.0 (git(at)github(dot)com:llvm/llvm-project.git llvmorg-11.0.0-0-g176249bd673)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
$ cat c.c
static const char[2] TEST = "F";
$ cc c.c
c.c:2:26: error: brackets are not allowed here; to declare an array, place the brackets after the identifier
static const char[2] TEST = "F";
~~~ ^
[2]
1 error generated.
--
Matthias Apitz, ✉ guru(at)unixarea(dot)de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
¡Con Cuba no te metas! «» Don't mess with Cuba! «» Leg Dich nicht mit Kuba an!
http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2021-03-24 09:05:19 | Re: BUG #16931: source code problem about commit_ts |
Previous Message | tomohiro hiramitsu | 2021-03-24 02:31:56 | Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table. |