Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Count error
Re: Count error [message #17613 is a reply to message #17593] Fri, 22 August 2008 14:14 Go to previous messageGo to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

thanks but i wrote this

	SQL*Select(ITEM_ID,ITEM_TITLE,ITEM_AUTHOR
			   ,Count(Select(SqlAll()).From(FILES).Where(FILE_ITEM_ID == ITEM_ID && IS_DOWNLOADED == true))
			   ,Count(Select(SqlAll()).From(FILES).Where(FILE_ITEM_ID == ITEM_ID))).GroupBy(ITEM_ID,ITEM_TITLE,ITEM_AUTHOR);


and these errors happened

D:\Program Files\MyApps\CISL\main.cpp:240: error: invalid initialization of reference of type 'const Upp::SqlVal&' from expression of type
	 'Upp::SqlSelect'
D:\Program Files\upp\uppsrc/Sql/Sqlexp.h:216: error: in passing argument 1 of 'Upp::SqlVal Upp::Count(const Upp::SqlVal&)'
D:\Program Files\MyApps\CISL\main.cpp:241: error: invalid initialization of reference of type 'const Upp::SqlVal&' from expression of type
	 'Upp::SqlSelect'
D:\Program Files\upp\uppsrc/Sql/Sqlexp.h:216: error: in passing argument 1 of 'Upp::SqlVal Upp::Count(const Upp::SqlVal&)'
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PostgreSQL Attribute Foreign Key --> Bug?
Next Topic: SQLCommander make program crash
Goto Forum:
  


Current Time: Fri Aug 15 15:00:24 CEST 2025

Total time taken to generate the page: 0.09617 seconds