File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 14
14
#include "plpgsql_check.h"
15
15
16
16
#include "access/htup_details.h"
17
+ #include "catalog/pg_collation.h"
17
18
#include "mb/pg_wchar.h"
18
- #include "tsearch/ts_locale.h"
19
19
#include "utils/builtins.h"
20
+ #include "utils/formatting.h"
20
21
#include "utils/json.h"
21
22
#include "utils/xml.h"
22
23
@@ -165,7 +166,7 @@ plpgsql_check_format_num(char *format_str)
165
166
{
166
167
int result ;
167
168
168
- char * format_lower_str = lowerstr (format_str );
169
+ char * format_lower_str = str_tolower (format_str , strlen ( format_str ), DEFAULT_COLLATION_OID );
169
170
170
171
if (strcmp (format_lower_str , "text" ) == 0 )
171
172
result = PLPGSQL_CHECK_FORMAT_TEXT ;
Original file line number Diff line number Diff line change @@ -537,10 +537,14 @@ extern plpgsql_check__ns_lookup_t plpgsql_check__ns_lookup_p;
537
537
#define FORMAT_0PARAM_OID 3540
538
538
#define FORMAT_NPARAM_OID 3539
539
539
540
+ #if PG_VERSION_NUM < 180000
541
+
540
542
#ifndef TupleDescAttr
541
543
#define TupleDescAttr (tupdesc , i ) ((tupdesc)->attrs[(i)])
542
544
#endif
543
545
546
+ #endif
547
+
544
548
#define recvar_tuple (rec ) (rec->erh ? expanded_record_get_tuple(rec->erh) : NULL)
545
549
#define recvar_tupdesc (rec ) (rec->erh ? expanded_record_fetch_tupdesc(rec->erh) : NULL)
546
550
You can’t perform that action at this time.
0 commit comments