Re: Insert UUID GEN 4 Value - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Insert UUID GEN 4 Value
Date
Msg-id 95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com
Whole thread Raw
In response to Re: Insert UUID GEN 4 Value  (tango ward <tangoward15@gmail.com>)
List pgsql-general
On 05/30/2018 09:32 PM, tango ward wrote:
> 

> 
> I'm testing this code:
> 
> curr_pgsql.execute('''CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; ''')
> curr_pgsql.execute('''
>                      INSERT INTO enrollmentinfo (
>                                                           created, modified,
>                                                           secure_id,
>                                                           relationship,
>                                                           tuition_bill,
>                                                           cashier_name,
>                                                           
> cashier_phone_number
>                                                           )
>                      VALUES (current_timestamp, current_timestamp,
>                              uuid_generate_v4(), '', '', '',)
>                                                           ''')

I just noticed something, the fields you show above do not match the 
description of the table you showed here:

https://www.postgresql.org/message-id/CAA6wQLJr6fjzx%2BZK6N4yiViZYdFuGGkMT27zsp-mR1SjAzbGEg%40mail.gmail.com

CREATE TABLE enrollmentinfo (
id integer NOT NULL,
created timestamp with time zone NOT NULL,
modified timestamp with time zone NOT NULL,
secure_id uuid NOT NULL,
relationship character varying(50) NOT NULL,
tuition_bill character varying(255) NOT NULL
);

So which is correct?


-- 
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Insert UUID GEN 4 Value
Next
From: Achilleas Mantzios
Date:
Subject: Re: Login with LDAP authentication takes 5 seconds