~ubuntu-branches/ubuntu/raring/orafce/raring

« back to all changes in this revision

Viewing changes to convert.c

  • Committer: Package Import Robot
  • Author(s): Peter Eisentraut
  • Date: 2011-12-25 15:41:12 UTC
  • mfrom: (1.1.4) (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111225154112-0xap2vxqjzdip23r
Tags: 3.0.4-1
* New upstream release
  - Fixes -Wformat-security error (closes: #643451)
* Updated standards version
* Changed build system from cdbs to dh
* Changed to build with pg_buildext, changing PostgreSQL version to 9.1
  (closes: #639471)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include "utils/pg_locale.h"
8
8
 
9
9
#include "orafunc.h"
10
 
 
11
 
Datum orafce_to_char_int4(PG_FUNCTION_ARGS);
12
 
Datum orafce_to_char_int8(PG_FUNCTION_ARGS);
13
 
Datum orafce_to_char_float4(PG_FUNCTION_ARGS);
14
 
Datum orafce_to_char_float8(PG_FUNCTION_ARGS);
15
 
Datum orafce_to_char_numeric(PG_FUNCTION_ARGS);
16
 
Datum orafce_to_number(PG_FUNCTION_ARGS);
17
 
Datum orafce_to_multi_byte(PG_FUNCTION_ARGS);
 
10
#include "builtins.h"
18
11
 
19
12
PG_FUNCTION_INFO_V1(orafce_to_char_int4);
20
13
PG_FUNCTION_INFO_V1(orafce_to_char_int8);
372
365
        src = PG_GETARG_TEXT_PP(0);
373
366
        s = VARDATA_ANY(src);
374
367
        srclen = VARSIZE_ANY_EXHDR(src);
375
 
        elog(NOTICE, "srclen = %d", srclen);
376
368
        dst = (text *) palloc(VARHDRSZ + srclen * MAX_CONVERSION_GROWTH);
377
369
        d = VARDATA(dst);
378
370