mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Made ecpg compatibility mode and run-time behaviour options case insensitive.
This commit is contained in:
		@@ -251,7 +251,7 @@ main(int argc, char *const argv[])
 | 
				
			|||||||
					snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
 | 
										snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
 | 
				
			||||||
					add_include_path(informix_path);
 | 
										add_include_path(informix_path);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				else if (strncmp(optarg, "ORACLE", strlen("ORACLE")) == 0)
 | 
									else if (pg_strcasecmp(optarg, "ORACLE") == 0)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					compat = ECPG_COMPAT_ORACLE;
 | 
										compat = ECPG_COMPAT_ORACLE;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
@@ -262,11 +262,11 @@ main(int argc, char *const argv[])
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			case 'r':
 | 
								case 'r':
 | 
				
			||||||
				if (strcmp(optarg, "no_indicator") == 0)
 | 
									if (pg_strcasecmp(optarg, "no_indicator") == 0)
 | 
				
			||||||
					force_indicator = false;
 | 
										force_indicator = false;
 | 
				
			||||||
				else if (strcmp(optarg, "prepare") == 0)
 | 
									else if (pg_strcasecmp(optarg, "prepare") == 0)
 | 
				
			||||||
					auto_prepare = true;
 | 
										auto_prepare = true;
 | 
				
			||||||
				else if (strcmp(optarg, "questionmarks") == 0)
 | 
									else if (pg_strcasecmp(optarg, "questionmarks") == 0)
 | 
				
			||||||
					questionmarks = true;
 | 
										questionmarks = true;
 | 
				
			||||||
				else
 | 
									else
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user