Re: Encountered an error

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: psycopg(at)postgresql(dot)org
Subject: Re: Encountered an error
Date: 2016-03-10 14:32:56
Message-ID: 20160310143256.GG9358@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Thu, Mar 10, 2016 at 03:30:14PM +0100, Karsten Hilbert wrote:

> While this is a nice solution to OPs problem I cannot resist
> the urge to point out that to me the whole approach of adding
> a column from within client code (outside a database
> management application) does have at least a whiff of design
> smell to it.

Like, what happens if the user enters something to be used as
a column name which isn't suitable for an identifier ?

And then what if two different unsuitable user input values
get normalized into the same column-name-suitable version ?

Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Shaan Repswal 2016-03-10 19:46:33 Re: Encountered an error
Previous Message Karsten Hilbert 2016-03-10 14:30:14 Re: Encountered an error