~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to db/drivers/dbf/describe.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <grass/dbmi.h>
19
19
#include <grass/datetime.h>
20
20
#include <grass/shapefil.h>
 
21
#include <grass/glocale.h>
21
22
#include "globals.h"
22
23
#include "proto.h"
23
24
 
30
31
 
31
32
    tab = find_table(name);
32
33
    if (tab == -1) {
33
 
        append_error("Table '%s' doesn't exist", db_get_string(table_name));
34
 
        report_error();
 
34
        db_d_append_error(_("Table '%s' doesn't exist"),
 
35
                          db_get_string(table_name));
 
36
        db_d_report_error();
35
37
        return DB_FAILED;
36
38
    }
37
39
    describe_table(tab, NULL, 0, table);
63
65
        else
64
66
            col = i;
65
67
 
 
68
        precision = 0;
 
69
        scale = 0;
 
70
 
66
71
        dcol = &(db.tables[tab].cols[col]);
67
72
        column = db_get_table_column(*table, i);
68
73