Changeset: fcecca5153bd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fcecca5153bd
Modified Files:
sql/backends/monet5/sql.c
Branch: Dec2023
Log Message:
Merge with Jun2023 branch.
diffs (53 lines):
diff --git a/monetdb5/modules/atoms/Tests/startswith.test
b/monetdb5/modules/atoms/Tests/startswith.test
--- a/monetdb5/modules/atoms/Tests/startswith.test
+++ b/monetdb5/modules/atoms/Tests/startswith.test
@@ -86,3 +86,8 @@ drop table foo
statement ok
drop table bar
+
+query T
+select ['Camón Romasan'] startsWith ['camu', true];
+----
+false
diff --git a/monetdb5/modules/atoms/utf8.h b/monetdb5/modules/atoms/utf8.h
--- a/monetdb5/modules/atoms/utf8.h
+++ b/monetdb5/modules/atoms/utf8.h
@@ -564,7 +564,7 @@ utf8_constexpr14_impl int utf8ncasecmp(c
const utf8_int32_t c1 = (0xe0 & *s1);
const utf8_int32_t c2 = (0xe0 & *s2);
- if (c1 < c2) {
+ if (c1 != c2) {
return c1 - c2;
} else {
return 0;
@@ -575,7 +575,7 @@ utf8_constexpr14_impl int utf8ncasecmp(c
const utf8_int32_t c1 = (0xf0 & *s1);
const utf8_int32_t c2 = (0xf0 & *s2);
- if (c1 < c2) {
+ if (c1 != c2) {
return c1 - c2;
} else {
return 0;
@@ -586,7 +586,7 @@ utf8_constexpr14_impl int utf8ncasecmp(c
const utf8_int32_t c1 = (0xf8 & *s1);
const utf8_int32_t c2 = (0xf8 & *s2);
- if (c1 < c2) {
+ if (c1 != c2) {
return c1 - c2;
} else {
return 0;
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -8,6 +8,7 @@
* Copyright 1997 - July 2008 CWI, August 2008 - 2023 MonetDB B.V.
*/
+
/*
* authors M Kersten, N Nes
* SQL support implementation
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]