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 » PostgreSQL example does not save data to database
Re: PostgreSQL example does not save data to database [message #20593 is a reply to message #20579] Tue, 24 March 2009 17:39 Go to previous messageGo to previous message
rtmex is currently offline  rtmex
Messages: 9
Registered: March 2009
Location: Puebla, MEXICO
Promising Member
Thanks,

m_session.SetTrace() is in this function

bool prueba_Postgres::OpenDB()
{
if(!m_session.Open("host=localhost dbname=radioactivo user=postgres password=test"))
{
Exclamation(Format("Error in open: %s", DeQtf(m_session.GetLastError())));
return false;
}

m_array.SetSession(m_session);

#ifdef _DEBUG
m_session.SetTrace();
#endif

//schema
Progress p;
p.SetText(t_("Creating _DEBUG database"));
SqlSchema sch(PGSQL);
StdStatementExecutor se(m_session);
All_Tables(sch);

if(sch.ScriptChanged(SqlSchema::UPGRADE))
PostgreSQLPerformScript(sch.Upgrade(),se, p);
if(sch.ScriptChanged(SqlSchema::ATTRIBUTES))
{
PostgreSQLPerformScript(sch.Attributes(),se, p);
}
if(sch.ScriptChanged(SqlSchema::CONFIG))
{
PostgreSQLPerformScript(sch.ConfigDrop(),se, p);
PostgreSQLPerformScript(sch.Config(),se, p);
}

sch.SaveNormal();

return true;
}

I tryed with the #ifdef _DEBUG and #endif lines commented and I also tryed compiling it in Release mode, but still the info is not saved
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trouble Adding rows to SqlArray
Next Topic: '?' make errors
Goto Forum:
  


Current Time: Thu Jun 06 20:14:48 CEST 2024

Total time taken to generate the page: 0.02892 seconds