Skip site navigation (1) Skip section navigation (2)

userdefined types

From: Assad Jarrahian <jarraa(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: userdefined types
Date: 2006-01-09 06:21:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
  So I have been reading over the web and it seems that one must
define two methods before declaring a type. But I seem to have done it
(CREATE  TYPE) without creating any functions and it did not give me
an error. I tried to use

INSERT TABLENAME SET user-defined-column = ROW('val1' ,'va2' ...);

and it works. The only problem is when I have ROW( , ,
'values','morevalues', ,'evenmorevalues');

it does not like the commas one after the other (empty value) .... how
do I solve that .... or does this have something to do with those two
methods (in and out) that I overlooked.

any insight would be much appreciated.



pgsql-general by date

Next:From: Marc G. FournierDate: 2006-01-09 06:33:40
Subject: CRITICAL RELEASE: Minor Releases to Fix DoS Vulnerability
Previous:From: Benjamin StookeyDate: 2006-01-09 04:18:31
Subject: Re: Functions as a Security Layer

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group