mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	Errors module content updated to Postgres 11
This commit is contained in:
		
							parent
							
								
									782fa39647
								
							
						
					
					
						commit
						61df7bdd8d
					
				| 
						 | 
					@ -325,6 +325,12 @@ class DivisionByZero(DataError):
 | 
				
			||||||
_by_sqlstate['22012'] = DivisionByZero
 | 
					_by_sqlstate['22012'] = DivisionByZero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class InvalidPrecedingOrFollowingSize(DataError):
 | 
				
			||||||
 | 
					    pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_by_sqlstate['22013'] = InvalidPrecedingOrFollowingSize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class InvalidArgumentForNtileFunction(DataError):
 | 
					class InvalidArgumentForNtileFunction(DataError):
 | 
				
			||||||
    pass
 | 
					    pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,7 +33,7 @@ def main():
 | 
				
			||||||
    file_start = read_base_file(filename)
 | 
					    file_start = read_base_file(filename)
 | 
				
			||||||
    # If you add a version to the list fix the docs (in errors.rst)
 | 
					    # If you add a version to the list fix the docs (in errors.rst)
 | 
				
			||||||
    classes, errors = fetch_errors(
 | 
					    classes, errors = fetch_errors(
 | 
				
			||||||
        ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10'])
 | 
					        ['9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '10', '11'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    f = open(filename, "w")
 | 
					    f = open(filename, "w")
 | 
				
			||||||
    for line in file_start:
 | 
					    for line in file_start:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user