Re: [SQL] create unique index schema.index_name on table (column)?

2004-09-11 Thread Tom Lane
[EMAIL PROTECTED] writes: > Is the syntax "schema_name.index_name" for create unique index wrong, > unsupported or what? Yes. Put the schema name on the table, instead. regards, tom lane ---(end of broadcast)--- TIP 1: sub

Re: [SQL] create unique index schema.index_name on table (column)?

2004-09-11 Thread Michael Glaesemann
On Sep 12, 2004, at 2:48 PM, Michael Glaesemann wrote: On Sep 12, 2004, at 5:42 AM, [EMAIL PROTECTED] wrote: Is the syntax "schema_name.index_name" for create unique index wrong, unsupported or what? I know is doesn't work as postgres kicks me back a syntax error each time (version 7.3.2 & 7.4.5)

Re: [SQL] create unique index schema.index_name on table (column)?

2004-09-11 Thread Michael Glaesemann
On Sep 12, 2004, at 5:42 AM, [EMAIL PROTECTED] wrote: Is the syntax "schema_name.index_name" for create unique index wrong, unsupported or what? I know is doesn't work as postgres kicks me back a syntax error each time (version 7.3.2 & 7.4.5). -sigh- Could you give a full example (including the e

[SQL] create unique index schema.index_name on table (column)?

2004-09-11 Thread m0ntar3
Is the syntax "schema_name.index_name" for create unique index wrong, unsupported or what? I know is doesn't work as postgres kicks me back a syntax error each time (version 7.3.2 & 7.4.5). -sigh- ---(end of broadcast)--- TIP 2: you can get off all

Re: [SQL] [GENERAL] PL/pgSQL Function Problem

2004-09-11 Thread Doug McNaught
the inquirer <[EMAIL PROTECTED]> writes: > ERROR: syntax error at or near "$1" at character 14 > CONTEXT: PL/pgSQL function "create_author" line 7 at > SQL statement PL/pgSQL errors are sometimes obscure. I'll try to comment on what looks wrong to me... > CREATE OR REPLACE FUNCTION create_autho

Re: [SQL] PL/pgSQL Function Problem

2004-09-11 Thread Michalis Kabrianis
the inquirer wrote: I am trying to create a function that creates a user and adds a row to a table. It produces no warnings or errors when I create the function but when I attempt to execute it I get a syntax error. I do not understand why this is happening. Any help would be greatly appreciate

Re: [SQL] HOW TO HANDLE ZEROS IN DATE FIELD?

2004-09-11 Thread Michael Glaesemann
On Sep 3, 2004, at 11:36 PM, James M Doherty wrote: I have a project that is taking input from another system. I have certain columns defined as 'Date' Columns. On input I will get '00' in this field which causes the insert to fail. 00 is not a valid date, as you are aware :) This is ofte