pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: tango ward <tangoward15@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Insert UUID GEN 4 Value
Date: Thu, 31 May 2018 07:33:32 -0700
Message-ID: <95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com> (raw)
In-Reply-To: <CAA6wQLLVpjtxAhPy3K1f63WtvqjK4QrzBLKjeh0PDUOyCvbT2Q@mail.gmail.com>
References: <CAA6wQLK1MLj6gL9wQYLNZD541_xJjbv9X5EzVADOtMhQnifc9w@mail.gmail.com>
	<1527738102.2400.1.camel@cybertec.at>
	<CAA6wQLJr6fjzx+ZK6N4yiViZYdFuGGkMT27zsp-mR1SjAzbGEg@mail.gmail.com>
	<1527738710.2400.4.camel@cybertec.at>
	<CAA6wQLLwGQC=szWF46ye+yh6dhuAUtgkwNhM6K5UmUc0M3B97Q@mail.gmail.com>
	<CAA6wQLJ_tpazkwPOuO6yuqaVYaqDK0c1ZPkdp7vQtY0h6xm15Q@mail.gmail.com>
	<CAKFQuwbgbiiviWeu+Y1Ri=YryosdHX5+Ja25XTWHV7V_1P+ymQ@mail.gmail.com>
	<CAA6wQLLVpjtxAhPy3K1f63WtvqjK4QrzBLKjeh0PDUOyCvbT2Q@mail.gmail.com>

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.g...

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




view thread (21+ messages)  latest in thread

Message-ID: <95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com>
Permalink:  ../95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com/
Also on:    postgresql.org/message-id/95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tangoward15@gmail.com, david.g.johnston@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: Insert UUID GEN 4 Value
  In-Reply-To: <95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com>
  References: <CAA6wQLK1MLj6gL9wQYLNZD541_xJjbv9X5EzVADOtMhQnifc9w@mail.gmail.com> <1527738102.2400.1.camel@cybertec.at> <CAA6wQLJr6fjzx+ZK6N4yiViZYdFuGGkMT27zsp-mR1SjAzbGEg@mail.gmail.com> <1527738710.2400.4.camel@cybertec.at> <CAA6wQLLwGQC=szWF46ye+yh6dhuAUtgkwNhM6K5UmUc0M3B97Q@mail.gmail.com> <CAA6wQLJ_tpazkwPOuO6yuqaVYaqDK0c1ZPkdp7vQtY0h6xm15Q@mail.gmail.com> <CAKFQuwbgbiiviWeu+Y1Ri=YryosdHX5+Ja25XTWHV7V_1P+ymQ@mail.gmail.com> <CAA6wQLLVpjtxAhPy3K1f63WtvqjK4QrzBLKjeh0PDUOyCvbT2Q@mail.gmail.com> <95aa024b-c2be-ca22-5b1e-48871d31df68@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox