mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Per-column collation support
This adds collation support for columns and domains, a COLLATE clause to override it per expression, and B-tree index support. Peter Eisentraut reviewed by Pavel Stehule, Itagaki Takahiro, Robert Haas, Noah Misch
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "catalog/pg_collation.h"
|
||||
#include "utils/array.h"
|
||||
#include "utils/formatting.h"
|
||||
#include "ltree.h"
|
||||
@ -90,8 +91,8 @@ bool
|
||||
int
|
||||
ltree_strncasecmp(const char *a, const char *b, size_t s)
|
||||
{
|
||||
char *al = str_tolower(a, s);
|
||||
char *bl = str_tolower(b, s);
|
||||
char *al = str_tolower(a, s, DEFAULT_COLLATION_OID);
|
||||
char *bl = str_tolower(b, s, DEFAULT_COLLATION_OID);
|
||||
int res;
|
||||
|
||||
res = strncmp(al, bl, s);
|
||||
|
Reference in New Issue
Block a user