+ int result, txt_size;
+ char *a, *b;
+
+ txt_size = VARSIZE(A)-VARHDRSZ;
+ a = (char *) palloc(txt_size+1);
+ memcpy(a, VARDATA(A), txt_size);
+ a[txt_size] = '\0';
+
+ txt_size = VARSIZE(B)-VARHDRSZ;
+ b = (char *) palloc(txt_size+1);
+ memcpy(b, VARDATA(B), txt_size);
+ b[txt_size] = '\0';
+
+ result = debVS.CmpVersion (a, b);
+
+ pfree (a);
+ pfree (b);
+
+ return (result);