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

Home » U++ Library support » U++ SQL » SqlFormat() bug with Date and Time types
SqlFormat() bug with Date and Time types [message #9603] Sun, 20 May 2007 15:03 Go to previous message
zsolt is currently offline  zsolt
Messages: 704
Registered: December 2005
Location: Budapest, Hungary
Contributor
SqlFormat() generates some trash characters with Date and Time arguments.
As a result, you can not use dates and times in your SQL queries.
Here is the testcase:
#include <Core/Core.h>
#include <Sql/Sql.h>

using namespace Upp;


CONSOLE_APP_MAIN
{
	Date sysdate = GetSysDate();	
	String s = SqlFormat(sysdate);
	Cout() << "Todays date is: " << s;
	while(1)
		Sleep(1000);
}

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQL "AS" for PostgreSQL fixed
Next Topic: PostgreSQL fieldname case bug
Goto Forum:
  


Current Time: Sat Jun 20 20:43:24 GMT+2 2026

Total time taken to generate the page: 0.00487 seconds