CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PostgreSQL Error

Print topic Send  topic

Author Message
Byron
Posted: 11/14/2002, 10:43 AM

Hi...
i just download the codecharge trial, i create a database on PostgreSQL, then i generate some pages and try to test it, but i have this error...

--- Error ---
Warning: PostgreSQL query failed: ERROR: Attribute 'cod_persona' not found in /var/www/html/db_pgsql.inc on line 67
Database error: Invalid SQL: SELECT COD_Persona,NUM_Seguridad FROM personas WHERE TXT_Usuario ='test' AND TXT_Contrasena='test'
PostgreSQL Error: 1 (ERROR: Attribute 'cod_persona' not found )
Session halted.
--- Error ---

Can someone help me about this?

Thanks.
Florin
Posted: 11/16/2003, 2:29 AM

PostgreSQL can acces columns that are named using capitalized letters only if they are included in "" (i.e. "ColumnName").

So the correct form of the statement above is:

SELECT "COD_Persona", "NUM_Seguridad" FROM personas WHERE "TXT_Usuario" ='test' AND "TXT_Contrasena"='test'

That's why I prefer using only lowercase when giving names to PostgreSQL db identifiers.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.