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 » Convert String to SqlId
Re: Convert String to SqlId [message #19621 is a reply to message #19619] Tue, 23 December 2008 19:12 Go to previous messageGo to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
ok, that's a replacement for my count-method, but the main-problem is how to use a String (sqlTable) as SqlId:

Sql sql(session);
SqlId all("*");
sql * Select(SqlCountRows()).From(sqlTable).Where(PRODUKT=="prohibis");


H:\Entwicklung\UPP\prohibisZA\prohibisZA.cpp(1049) : error C2668: 'Upp::SqlSelect::From' : ambiguous call to overloaded function
        c:\upp\uppsrc\sql\Sqlexp.h(454): could be 'Upp::SqlSelect &Upp::SqlSelect::From(const Upp::SqlVal &)'
        c:\upp\uppsrc\sql\Sqlexp.h(451): or       'Upp::SqlSelect &Upp::SqlSelect::From(Upp::SqlId)'
        while trying to match the argument list '(Upp::String)'
H:\Entwicklung\UPP\prohibisZA\prohibisZA.cpp(1049) : error C2228: left of '.Where' must have class/struct/union
prohibisZA: 1 file(s) built in (0:03.63), 3635 msecs / file, duration = 3697 msecs, parallelization 0%

There were errors. (0:04.68)

[Updated on: Tue, 23 December 2008 19:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problems with schema-file
Next Topic: Issue with getting data back from a sqlite3 database
Goto Forum:
  


Current Time: Mon Jun 23 20:51:10 CEST 2025

Total time taken to generate the page: 0.04729 seconds