mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Make pgwin32_putenv() visit debug CRTs.
This has no effect in the most conventional case, where no relevant DLL uses a debug build. For an example where it does matter, given a debug build of MIT Kerberos, the krb_server_keyfile parameter usually had no effect. Since nobody wants a Heisenbug, back-patch to 9.2 (all supported versions). Christian Ullrich, reviewed by Michael Paquier.
This commit is contained in:
		@@ -40,27 +40,51 @@ pgwin32_putenv(const char *envval)
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcrt", NULL, NULL
 | 
								"msvcrt", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 6.0 / MinGW */
 | 
							},						/* Visual Studio 6.0 / MinGW */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcrtd", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr70", NULL, NULL
 | 
								"msvcr70", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2002 */
 | 
							},						/* Visual Studio 2002 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr70d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr71", NULL, NULL
 | 
								"msvcr71", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2003 */
 | 
							},						/* Visual Studio 2003 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr71d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr80", NULL, NULL
 | 
								"msvcr80", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2005 */
 | 
							},						/* Visual Studio 2005 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr80d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr90", NULL, NULL
 | 
								"msvcr90", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2008 */
 | 
							},						/* Visual Studio 2008 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr90d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr100", NULL, NULL
 | 
								"msvcr100", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2010 */
 | 
							},						/* Visual Studio 2010 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr100d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr110", NULL, NULL
 | 
								"msvcr110", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2012 */
 | 
							},						/* Visual Studio 2012 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr110d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			"msvcr120", NULL, NULL
 | 
								"msvcr120", NULL, NULL
 | 
				
			||||||
		},						/* Visual Studio 2013 */
 | 
							},						/* Visual Studio 2013 */
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"msvcr120d", NULL, NULL
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			NULL, NULL, NULL
 | 
								NULL, NULL, NULL
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user