empty arrays

Поиск
Список
Период
Сортировка
От
Тема empty arrays
Дата
Msg-id NDBBKEGJICMIMJHJEBCOKENLFOAA.floyds@4peakstech.com
обсуждение исходный текст
Ответы Re: empty arrays
Re: empty arrays
Список pgsql-sql
using: psql (PostgreSQL) 7.2.1

why does an empty array return an array of length 1 rather than array of
length 0? one would think that the results below would have returned { }
instead of {0}.

simple test using psql:

# create table test_table ( test_column integer[] );
CREATE
# insert into test_table (test_column) values ( '{ }' );
INSERT 43475 1
# select * from test_table;

test_column
------------{0}
(1 row)


i want to be able to store a zero-length array field in the database. how do
i specify this with  sql?

Regards,

Floyd Shackelford
4 Peaks Technology Group, Inc.
VOICE: 334.735.9428
FAX:   916.404.7125
EMAIL: FloydS@4PeaksTech.com
ICQ #: 161371538

Shackelford Motto: ACTA NON VERBA - Actions, not words

Alabama StateMotto: AUDEMUS JURA NOSTRA DEFENDERE - We Dare Defend Our
Rights




В списке pgsql-sql по дате отправления:

Предыдущее
От: "Senthil"
Дата:
Сообщение: Doubts porting from Oracle to postgresql
Следующее
От: mdavies@ilstu.edu (Mark Davies)
Дата:
Сообщение: Slow self-join on a 100 million record table