PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 13th, 2012, 01:25 AM
nurulDE nurulDE is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 1 nurulDE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 7 sec
Reputation Power: 0
Getting this error

Hi

I'm running on a program as to migrate multiple tables to one table

the program seems worked on informix environment but not in postgress

Im getting the following error when running the program on postgress


| pgs.c:01466(3) : Nat stmt1 = declare cu4 cursor for
| pgs.c:01472(2) : Could not prepare the statement.
| pgs.c:01473(2) : ERROR: syntax error at end of input
LINE 1: declare cu4 cursor for
^

| pgs.c:00321(3) : Diagnostic info:
| pgs.c:00322(3) : SQL State: 42601
| pgs.c:00323(3) : Message : syntax error at end of input
| pgs.c:01801(2) : Could not execute statement with result set.
| sqlcode : -201
| sqlstate : 42601
| sqlerrd2 : -1
| sql message : syntax error at end of input
| sql msg param :
| sql driver : ident='dbmpgs83x'

Program stopped at 'db_upg77R060.4gl', line number 289.
SQL statement error number -201 (-1).

PREPARE q_cbdbaudit_tables FROM p_query
DECLARE c_cbdbaudit_tables CURSOR FOR q_cbdbaudit_tables

FOREACH c_cbdbaudit_tables INTO p_audittable<---line number 289
IF DOWNSHIFT(p_audittable) NOT MATCHES "cb_db[0-9][0-9][0-9][0-9][a-z][a-z]" THEN
CONTINUE FOREACH
END IF


need your help on this.thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Getting this error

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap