mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Make SQL arrays support null elements. This commit fixes the core array
functionality, but I still need to make another pass looking at places that incidentally use arrays (such as ACL manipulation) to make sure they are null-safe. Contrib needs work too. I have not changed the behaviors that are still under discussion about array comparison and what to do with lower bounds.
This commit is contained in:
@@ -232,7 +232,7 @@ rewrite_accum(PG_FUNCTION_ARGS) {
|
||||
if (ARR_ELEMTYPE(qa) != tsqOid)
|
||||
elog(ERROR, "array should contain tsquery type");
|
||||
|
||||
deconstruct_array(qa, tsqOid, -1, false, 'i', &elemsp, &nelemsp);
|
||||
deconstruct_array(qa, tsqOid, -1, false, 'i', &elemsp, NULL, &nelemsp);
|
||||
|
||||
q = (QUERYTYPE*)DatumGetPointer( elemsp[0] );
|
||||
if ( q->size == 0 ) {
|
||||
|
Reference in New Issue
Block a user