updatetable problem

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

juned_seskoad
Ebase User
Posts: 35
Joined: Mon Jul 14, 2014 11:55 pm

updatetable problem

#1

Postby juned_seskoad » Tue Jul 22, 2014 6:19 am

Dear All,

On Postgress I have a table test with field id and name.
I'm trying to insert data using updatetable
=> updatetable test;
but it not work, error message
ERROR: column "id" of relation "test" does not exist
Position: 27 - SQL: insert into base.test (id,name) values (&&{Id},&&{name})

I try this SQL on postgress directly also problem with same message

Than I change SQL with add quote (") for identify field name
=> insert into base.test ("id","name") values (1, "test")
and it work. why could this happen ? does ebase SQL and postgress SQL different ? because I'm trying using MYsql with SQL from ebase it work (without quote (") for field name)

can somebody help me, thanks for attention

Regards

Juned
0 x

juned_seskoad
Ebase User
Posts: 35
Joined: Mon Jul 14, 2014 11:55 pm

#2

Postby juned_seskoad » Tue Jul 22, 2014 11:48 pm

yesterday I find the answer, before i have table on postgres name "test", with field ID and Name. in ebase updatetable() running sql script inser into (nameoffield) value (value), name of field in ebase always using lowercase and postgress is case sensitive. after i change all field name with lowercase it work fine.

thanks for all attention

Regards

Juned
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#3

Postby Steve » Wed Jul 30, 2014 7:31 am

Thanks Juned,

This is useful information.

Steve
0 x


Who is online

Users browsing this forum: No registered users and 3 guests