- 17 Aug, 2021 1 commit
-
-
Michael Meskes authored
that triggers the warning during regression tests.
-
- 13 Aug, 2021 1 commit
-
-
Michael Meskes authored
After binding a statement to a connection with DECLARE STATEMENT the connection was still not used for DEALLOCATE and DESCRIBE statements. This patch fixes that, adds a missing warning and cleans up the code. Author: Hayato Kuroda Reviewed-by: Kyotaro Horiguchi, Michael Paquier Discussion: https://postgr.es/m/TYAPR01MB5866BA57688DF2770E2F95C6F5069%40TYAPR01MB5866.jpnprd01.prod.outlook.com
-
- 24 Mar, 2021 1 commit
-
-
Michael Meskes authored
This command declares a SQL identifier for a SQL statement to be used in other embedded SQL statements. The identifier is linked to a connection. Author: Hayato Kuroda <kuroda.hayato@fujitsu.com> Reviewed-by:
Shawn Wang <shawn.wang.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/TY2PR01MB24438A52DB04E71D0E501452F5630@TY2PR01MB2443.jpnprd01.prod.outlook.com
-
- 30 Jun, 2020 1 commit
-
-
Michael Meskes authored
Author: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
-
- 20 Sep, 2019 1 commit
-
-
Tom Lane authored
This reverts commit bd7c95f0, along with assorted follow-on fixes. There are some questions about the definition and implementation of that statement, and we don't have time to resolve them before v13 release. Rather than ship the feature and then have backwards-compatibility concerns constraining any redesign, let's remove it for now and try again later. Discussion: https://postgr.es/m/TY2PR01MB2443EC8286995378AEB7D9F8F5B10@TY2PR01MB2443.jpnprd01.prod.outlook.com
-
- 22 May, 2019 1 commit
-
-
Michael Meskes authored
Besides implementing the new statement this change fix some issues with the parsing of PREPARE and EXECUTE statements. The different forms of these statements are now all handled in a ujnified way. Author: Matsumura-san <matsumura.ryo@jp.fujitsu.com>
-
- 18 Feb, 2019 1 commit
-
-
Michael Meskes authored
So far ECPG programs had to treat binary data for bytea column as 'char' type. But this meant converting from/to escaped format with PQunescapeBytea/ PQescapeBytea() and therefore forcing users to add unnecessary code and cost for the conversion in runtime. By adding a dedicated datatype for bytea most of this special handling is no longer needed. Author: Matsumura-san ("Matsumura, Ryo" <matsumura.ryo@jp.fujitsu.com>) Discussion: https://postgr.es/m/flat/03040DFF97E6E54E88D3BFEE5F5480F737A141F9@G01JPEXMBYT04
-
- 16 Feb, 2019 1 commit
-
-
Michael Meskes authored
DECLARE STATEMENT is a statement that lets users declare an identifier pointing at a connection. This identifier will be used in other embedded dynamic SQL statement such as PREPARE, EXECUTE, DECLARE CURSOR and so on. When connecting to a non-default connection, the AT clause can be used in a DECLARE STATEMENT once and is no longer needed in every dynamic SQL statement. This makes ECPG applications easier and more efficient. Moreover, writing code without designating connection explicitly improves portability. Authors: Ideriha-san ("Ideriha, Takeshi" <ideriha.takeshi@jp.fujitsu.com>) Kuroda-san ("Kuroda, Hayato" <kuroda.hayato@jp.fujitsu.com>) Discussion: https://postgr.es/m4E72940DA2BF16479384A86D54D0988A565669DF@G01JPEXMBKW04
-
- 01 Dec, 2018 1 commit
-
-
Tom Lane authored
This should reduce confusion, and in particular make it safe to copy typename.c into preproc/ and compile it there. This doesn't affect anything outside ecpg, and particularly not end users, because these files don't get installed; they just exist to share declarations among the .c files of each subdirectory. Discussion: https://postgr.es/m/31364.1543511708@sss.pgh.pa.us
-
- 12 Sep, 2017 1 commit
-
-
Michael Meskes authored
or array variables.
-
- 05 Sep, 2017 1 commit
-
-
Peter Eisentraut authored
The parenthesized style has only been used in a few modules. Change that to use the style that is predominant across the whole tree. Reviewed-by:
Michael Paquier <michael.paquier@gmail.com> Reviewed-by:
Ryan Murphy <ryanfmurphy@gmail.com>
-
- 06 Feb, 2017 1 commit
-
-
Heikki Linnakangas authored
Backpatch to all supported versions, where applicable, to make backpatching of future fixes go more smoothly. Josh Soref Discussion: https://www.postgresql.org/message-id/CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com
-
- 11 Dec, 2016 1 commit
-
-
Tom Lane authored
Clean up some technical debt left behind by commit 72b1e3a2: instead of quickly hacking the name of base_yylex() with a #define, set it properly with "%option prefix". This causes the names of pgc.l's other exported symbols to change as well, so run around and modify the outside references to them as needed. Similarly, make pgc.l's external references to base_yylval use that variable's true name instead of a macro. The reason for doing this now is that the quick-hack solution will fail with future versions of flex, as reported by Дилян Палаузов. Hence, back-patch into 9.6 where the previous commit appeared, since it's likely people will build 9.6 with newer flex versions during its lifetime. Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org
-
- 26 Mar, 2015 1 commit
-
-
Tom Lane authored
This improves on commit bbfd7eda by making two simple changes: * pg_attribute_noreturn now takes parentheses, ie pg_attribute_noreturn(). Likewise pg_attribute_unused(), pg_attribute_packed(). This reduces pgindent's tendency to misformat declarations involving them. * attributes are now always attached to function declarations, not definitions. Previously some places were taking creative shortcuts, which were not merely candidates for bad misformatting by pgindent but often were outright wrong anyway. (It does little good to put a noreturn annotation where callers can't see it.) In any case, if we would like to believe that these macros can be used with non-gcc compilers, we should avoid gratuitous variance in usage patterns. I also went through and manually improved the formatting of a lot of declarations, and got rid of excessively repetitive (and now obsolete anyway) comments informing the reader what pg_attribute_printf is for.
-
- 11 Mar, 2015 1 commit
-
-
Andres Freund authored
Until now __attribute__() was defined to be empty for all compilers but gcc. That's problematic because it prevents using it in other compilers; which is necessary e.g. for atomics portability. It's also just generally dubious to do so in a header as widely included as c.h. Instead add pg_attribute_format_arg, pg_attribute_printf, pg_attribute_noreturn macros which are implemented in the compilers that understand them. Also add pg_attribute_noreturn and pg_attribute_packed, but don't provide fallbacks, since they can affect functionality. This means that external code that, possibly unwittingly, relied on __attribute__ defined to be empty on !gcc compilers may now run into warnings or errors on those compilers. But there shouldn't be many occurances of that and it's hard to work around... Discussion: 54B58BA3.8040302@ohmu.fi Author: Oskari Saarenmaa, with some minor changes by me.
-
- 22 Oct, 2014 1 commit
-
-
Michael Meskes authored
Declare static variable as static and external as extern.
-
- 21 Jul, 2014 1 commit
-
-
Peter Eisentraut authored
-
- 28 May, 2014 2 commits
-
-
Tom Lane authored
This reverts commit 45b7abe5. It turns out that the %name-prefix syntax without "=" does not work at all in pre-2.4 Bison. We are not prepared to make such a large jump in minimum required Bison version just to suppress a warning message in a version hardly any developers are using yet. When 3.0 gets more popular, we'll figure out a way to deal with this. In the meantime, BISONFLAGS=-Wno-deprecated is recommendable for anyone using 3.0 who doesn't want to see the warning.
-
Tom Lane authored
%name-prefix doesn't use an "=" sign according to the Bison docs, but it silently accepted one anyway, until Bison 3.0. This was originally a typo of mine in commit 012abeba, and we seem to have slavishly copied the error into all the other grammar files. Per report from Vik Fearing; analysis by Peter Eisentraut. Back-patch to all active branches, since somebody might try to build a back branch with up-to-date tools.
-
- 27 Nov, 2013 1 commit
-
-
Michael Meskes authored
Patch by Böszörményi Zoltán <zb@cybertec.at>
-
- 20 Nov, 2013 1 commit
-
-
Peter Eisentraut authored
This allows decorating mmfatal() with noreturn compiler hints, leading to better diagnostics.
-
- 04 Jan, 2012 1 commit
-
-
Michael Meskes authored
-
- 27 Dec, 2011 1 commit
-
-
Peter Eisentraut authored
Always compare the return value to 0, don't use cute tricks like if (!strcmp(...)).
-
- 01 Nov, 2011 1 commit
-
-
Peter Eisentraut authored
These are not touched by pgindent, so clean them up a bit manually.
-
- 09 Jan, 2011 1 commit
-
-
Michael Meskes authored
-
- 23 Nov, 2010 1 commit
-
-
Peter Eisentraut authored
-
- 20 Sep, 2010 1 commit
-
-
Magnus Hagander authored
-
- 10 Sep, 2010 1 commit
-
-
Michael Meskes authored
ecpg also does not regard cursor names as case-sensitive. Thanks to Zoltan Boszormenyi for the patch.
-
- 25 May, 2010 1 commit
-
-
Michael Meskes authored
Added a configure test for "long long" datatypes. So far this is only used in ecpg and replaces the old test that was kind of hackish.
-
- 20 May, 2010 1 commit
-
-
Michael Meskes authored
Ecpg now accepts "long long" datatypes even if "long" is 64bit wide. This used to cover the equally long "long long" type. This patch closes bug #5464.
-
- 09 Mar, 2010 1 commit
-
-
Michael Meskes authored
ecpg now adds a unique counter to its varchar struct definitions to make these definitions unique, too. It used to use the linenumber but in the rare case of two definitions in one line this was not unique.
-
- 29 Jan, 2010 2 commits
-
-
Michael Meskes authored
so regression testing is possible, by Zoltan Boszormenyi
-
Michael Meskes authored
-
- 26 Jan, 2010 1 commit
-
-
Michael Meskes authored
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add out-of-scope cursor support to native mode.
-
- 05 Nov, 2009 1 commit
-
-
Tom Lane authored
it works just as well to have them be ordinary identifiers, and this gets rid of a number of ugly special cases. Plus we aren't interfering with non-rule usage of these names. catversion bump because the names change internally in stored rules.
-
- 08 Sep, 2009 1 commit
-
-
Tom Lane authored
It seems the flex developers have decided to change yyleng from int to size_t. This has already happened in the latest release of OS X, and will start happening elsewhere once the next release of flex appears. Rather than trying to divine how it's declared in any particular build, let's just remove the one existing not-very-necessary external usage. Back-patch to all supported branches; not so much because users in the field are likely to care about building old branches with cutting-edge flex, as to keep OSX-based buildfarm members from having problems with old branches.
-
- 07 Aug, 2009 1 commit
-
-
Michael Meskes authored
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
-
- 10 Jun, 2009 1 commit
-
-
Peter Eisentraut authored
-
- 03 Jun, 2009 1 commit
-
-
Tom Lane authored
__attribute__() marker so that gcc can validate the format string against the actual arguments, get rid of overcomplicated and unsafe usage in base_yyerror().
-
- 23 Jan, 2009 1 commit
-
-
Peter Eisentraut authored
-