mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	here is an updated version of the bit type with a bugfix and all the necessa ry SQL functions defined. This should replace what is currently in contrib. I'd appreciate any comments on what is there. Kind regards, Adriaan
		
			
				
	
	
		
			23 lines
		
	
	
		
			343 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			343 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Glue file to use varbit before it is properly integrated with postgres */
 | |
| 
 | |
| #include "varbit.h"
 | |
| 
 | |
| bits8 * varbit_in (char * s);
 | |
| char * varbit_out (bits8 *s);
 | |
| 
 | |
| bits8 *
 | |
| varbit_in (char * s) {
 | |
|   return varbitin (s, 0, -1);
 | |
| }
 | |
| 
 | |
| /*char * 
 | |
| varbit_out (bits8 *s) {
 | |
|   return zpbitout(s);
 | |
| }
 | |
| */
 | |
| 
 | |
| char * 
 | |
| varbit_out (bits8 *s) {
 | |
|   return zpbitsout(s);
 | |
| }
 |