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

Home » U++ Library support » U++ SQL » SqlBinary and Postgres 9
SqlBinary and Postgres 9 [message #36298] Fri, 18 May 2012 20:43 Go to previous message
Zbych is currently offline  Zbych
Messages: 332
Registered: July 2009
Senior Member
Hi,

Since Postgres 9 default value of "standard_conforming_strings" has been changed to ON and it means that it is necessary to use E'...' escape syntax. Unfortunately SqlBinary doesn't do this.
Can you Mirek add an 'E' to binary case in SqlCompile?

		case SQLC_BINARY: {
			int l;
			ReadSqlValue(l, s);
			if(r) {
				if(l == 0)
					*r << "NULL";
				else
					switch(dialect) {
					case PGSQL: {
						*r << "E\'"; //<------ 
						const char *e = s + l;

[Updated on: Fri, 18 May 2012 21:32]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Access to S_* Structure of TABLE crash Application.
Next Topic: Sql crash in 64 bit machine
Goto Forum:
  


Current Time: Tue Apr 28 09:50:44 GMT+2 2026

Total time taken to generate the page: 0.00744 seconds