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 » Sql(SqlSession& session) problem
Re: Sql(SqlSession& session) problem [message #40315 is a reply to message #37300] Wed, 17 July 2013 15:50 Go to previous messageGo to previous message
pfsdanny is currently offline  pfsdanny
Messages: 26
Registered: December 2011
Location: Hong Kong
Promising Member
Just reinstall everything, and didn't fix.

Here is the code causing the problem:

db.h

class c_db : public MySqlSession{
public:
typedef c_db CLASSNAME;
String username;
String password;
String database;
String host;
String collate;
String lockId;
int port;
bool connect(bool prompt=true);
void disconnect();
void copyFm(c_db db);
bool getlock(String name);
bool releaselock();
c_db();
~c_db();
};

db.cpp
....

void c_db::copyFm(c_db db) {
host = db.host;
database = db.database;
username = db.username;
password = db.password;
port = db.port;
collate = db.collate;
}
...

The error comes from c_db::copyFm(c_db db) line. Do I need to change the code to c_db::copyFm(c_db db&)?

I don't understand the '&' stand for.

Thanks.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG] Memory leak in MySql package
Next Topic: MS SQL Server CE Assistance
Goto Forum:
  


Current Time: Sat Aug 02 02:00:53 CEST 2025

Total time taken to generate the page: 0.09987 seconds