mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	Fixed problem with .callproc().
This commit is contained in:
		
							parent
							
								
									0a73b75c51
								
							
						
					
					
						commit
						d67b171eed
					
				| 
						 | 
					@ -890,7 +890,7 @@ psyco_curs_callproc(cursorObject *self, PyObject *args, PyObject *kwargs)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* allocate some memory, build the SQL and create a PyString from it */
 | 
					    /* allocate some memory, build the SQL and create a PyString from it */
 | 
				
			||||||
    sl = strlen(procname) + 10 + nparameters*3;
 | 
					    sl = strlen(procname) + 10 + nparameters*3 - (nparameters ? 1 : 0);
 | 
				
			||||||
    sql = (char*)PyMem_Malloc(sl);
 | 
					    sql = (char*)PyMem_Malloc(sl);
 | 
				
			||||||
    if (sql == NULL) return NULL;
 | 
					    if (sql == NULL) return NULL;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user