mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Hi,
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
This commit is contained in:
22
contrib/bit/varbit_glue.c
Normal file
22
contrib/bit/varbit_glue.c
Normal file
@ -0,0 +1,22 @@
|
||||
/* 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);
|
||||
}
|
Reference in New Issue
Block a user