U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » SqlArray bad select?
SqlArray bad select? [message #14645] Wed, 05 March 2008 19:22 Go to previous message
indiocolifa is currently offline  indiocolifa
Messages: 49
Registered: January 2008
Location: Argentina
Member
With this code for a SqlArray:

	userList.SetSession(*(G_STATE->GetPsqlSession()));
	userList.SetTable(OPERADOR);
	userList.AddKey(LOGIN);
	userList.SetOrderBy(LOGIN);
	userList.AddColumn(LOGIN,"Usuario de login");
	userList.AddColumn(NOMBRE,"Nombre operador");
	userList.AddColumn(CLASE,"Clase");
	userList.Query();	


I'm getting this SQL (in Log):

select LOGIN, LOGIN, NOMBRE, CLASE from OPERADOR order by LOGIN

Why two LOGIN fields in the query? Should be I think:

select LOGIN, NOMBRE, CLASE from OPERADOR order by LOGIN

I'm using U++ 2008.1 beta

Hernan
 
Read Message
Read Message
Previous Topic: Bugfix: ArrayCtrl Black info popups
Next Topic: Deleting more than one selected records in ArrayCtrl
Goto Forum:
  


Current Time: Tue Apr 28 00:34:31 GMT+2 2026

Total time taken to generate the page: 0.00522 seconds