pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedWeird problem with script...
3+ messages / 3 participants
[nested] [flat]
* Weird problem with script...
@ 2001-01-03 00:01 jkakar@expressus.com
0 siblings, 1 reply; 3+ messages in thread
From: jkakar@expressus.com @ 2001-01-03 00:01 UTC (permalink / raw)
To: pgsql-sql
Hi,
I'm building a script to create the tables in my database. Everything
works fine except one thing with this part of my script:
create table tbl_resume_free_text_type (
type_id int,
type text
);
-- insert into tbl_resume_free_text_type (type_id, type) values (1, 'Hobbies');
-- insert into tbl_resume_free_text_type (type_id, type) values (2, 'Special Talents');
If I uncomment the two insert statements I get an error message
stating that tbl_resume_free_text_type doesn't exist. With the lines
commented out the table gets created (and the rest of the script runs
error-free) and I can manually insert these rows afterwards without a
problem... I'm running PSQL 7.0.3. Any ideas?
Thanks,
Jamu.
--
Jamu Kakar (Developer) Expressus Design Studio, Inc.
jkakar@expressus.com 708-1641 Lonsdale Avenue
V: (604) 903-6999 North Vancouver, BC, V7M 2J5
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Weird problem with script...
@ 2001-01-03 01:02 Tom Lane <tgl@sss.pgh.pa.us>
parent: jkakar@expressus.com
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2001-01-03 01:02 UTC (permalink / raw)
To: jkakar@expressus.com; +Cc: pgsql-sql
jkakar@expressus.com writes:
> I'm building a script to create the tables in my database. Everything
> works fine except one thing with this part of my script:
> create table tbl_resume_free_text_type (
> type_id int,
> type text
> );
> -- insert into tbl_resume_free_text_type (type_id, type) values (1, 'Hobbies');
> -- insert into tbl_resume_free_text_type (type_id, type) values (2, 'Special Talents');
> If I uncomment the two insert statements I get an error message
> stating that tbl_resume_free_text_type doesn't exist.
Odd. The three statements work just fine for me when executed by hand
in 7.0.3. Anyone else able to reproduce a problem?
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Weird problem with script...
@ 2001-01-03 10:22 Richard Huxton <dev@archonet.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Richard Huxton @ 2001-01-03 10:22 UTC (permalink / raw)
To: pgsql-sql
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: <jkakar@expressus.com>
Cc: <pgsql-sql@postgresql.org>
Sent: Wednesday, January 03, 2001 1:02 AM
Subject: Re: [SQL] Weird problem with script...
> jkakar@expressus.com writes:
> > I'm building a script to create the tables in my database. Everything
> > works fine except one thing with this part of my script:
>
> > create table tbl_resume_free_text_type (
> > type_id int,
> > type text
> > );
>
> > -- insert into tbl_resume_free_text_type (type_id, type) values (1,
'Hobbies');
> > -- insert into tbl_resume_free_text_type (type_id, type) values (2,
'Special Talents');
>
> > If I uncomment the two insert statements I get an error message
> > stating that tbl_resume_free_text_type doesn't exist.
>
> Odd. The three statements work just fine for me when executed by hand
> in 7.0.3. Anyone else able to reproduce a problem?
>
> regards, tom lane
Works fine on 7.0.0 putting them in a text file and doing psql < filename
Jamu - how are you executing this?
- Richard
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-01-03 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-03 00:01 Weird problem with script... jkakar@expressus.com
2001-01-03 01:02 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-01-03 10:22 ` Richard Huxton <dev@archonet.com>
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