mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Add transforms feature
This provides a mechanism for specifying conversions between SQL data types and procedural languages. As examples, there are transforms for hstore and ltree for PL/Perl and PL/Python. reviews by Pavel Stěhule and Andres Freund
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
SQL_LONG SQL_NULLABLE SQL_OCTET_LENGTH
|
||||
SQL_OPEN SQL_OUTPUT SQL_REFERENCE
|
||||
SQL_RETURNED_LENGTH SQL_RETURNED_OCTET_LENGTH SQL_SCALE
|
||||
SQL_SECTION SQL_SHORT SQL_SIGNED SQL_SQL SQL_SQLERROR
|
||||
SQL_SECTION SQL_SHORT SQL_SIGNED SQL_SQLERROR
|
||||
SQL_SQLPRINT SQL_SQLWARNING SQL_START SQL_STOP
|
||||
SQL_STRUCT SQL_UNSIGNED SQL_VAR SQL_WHENEVER
|
||||
|
||||
|
@ -1005,7 +1005,7 @@ ecpg_using: USING using_list { $$ = EMPTY; }
|
||||
| using_descriptor { $$ = $1; }
|
||||
;
|
||||
|
||||
using_descriptor: USING SQL_SQL SQL_DESCRIPTOR quoted_ident_stringvar
|
||||
using_descriptor: USING SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
|
||||
{
|
||||
add_variable_to_head(&argsinsert, descriptor_variable($4,0), &no_indicator);
|
||||
$$ = EMPTY;
|
||||
@ -1017,7 +1017,7 @@ using_descriptor: USING SQL_SQL SQL_DESCRIPTOR quoted_ident_stringvar
|
||||
}
|
||||
;
|
||||
|
||||
into_descriptor: INTO SQL_SQL SQL_DESCRIPTOR quoted_ident_stringvar
|
||||
into_descriptor: INTO SQL_P SQL_DESCRIPTOR quoted_ident_stringvar
|
||||
{
|
||||
add_variable_to_head(&argsresult, descriptor_variable($4,1), &no_indicator);
|
||||
$$ = EMPTY;
|
||||
@ -1494,7 +1494,6 @@ ECPGKeywords_vanames: SQL_BREAK { $$ = mm_strdup("break"); }
|
||||
| SQL_RETURNED_OCTET_LENGTH { $$ = mm_strdup("returned_octet_length"); }
|
||||
| SQL_SCALE { $$ = mm_strdup("scale"); }
|
||||
| SQL_SECTION { $$ = mm_strdup("section"); }
|
||||
| SQL_SQL { $$ = mm_strdup("sql"); }
|
||||
| SQL_SQLERROR { $$ = mm_strdup("sqlerror"); }
|
||||
| SQL_SQLPRINT { $$ = mm_strdup("sqlprint"); }
|
||||
| SQL_SQLWARNING { $$ = mm_strdup("sqlwarning"); }
|
||||
|
@ -63,8 +63,6 @@ static const ScanKeyword ECPGScanKeywords[] = {
|
||||
{"section", SQL_SECTION, 0},
|
||||
{"short", SQL_SHORT, 0},
|
||||
{"signed", SQL_SIGNED, 0},
|
||||
{"sql", SQL_SQL, 0}, /* strange thing, used for into sql descriptor
|
||||
* MYDESC; */
|
||||
{"sqlerror", SQL_SQLERROR, 0},
|
||||
{"sqlprint", SQL_SQLPRINT, 0},
|
||||
{"sqlwarning", SQL_SQLWARNING, 0},
|
||||
|
Reference in New Issue
Block a user