Commits

Tuukka Norri committed 22d2e30

Additional const qualifiers

Comments (0)

Files changed (1)

Sources/PGTSFoundationObjects.m

 	{
 		size_t resultLength = 0;
 		unsigned char *escapedValue = NULL;
-		unsigned char const *value = (unsigned char const *) [param PGTSParameterLength: &length connection: connection];
+		unsigned char const * const value = (unsigned char *) [param PGTSParameterLength: &length connection: connection];
 		escapedValue = PQescapeByteaConn ([connection pgConnection], value, length, &resultLength);
 		retval = [NSString stringWithFormat: @"'%s'", escapedValue];
 		PQfreemem (escapedValue);
 	else
 	{
 		char *escapedValue = NULL;
-		char const *value = [param PGTSParameterLength: &length connection: connection];
+		char const * const value = [param PGTSParameterLength: &length connection: connection];
 		escapedValue = PGTSCopyEscapedString (connection, value);
 		retval = [NSString stringWithFormat: @"'%s'", escapedValue];
 		free (escapedValue);