~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/backend/commands/sequence.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.159 2009/04/04 21:12:31 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/commands/sequence.c,v 1.160 2009/06/11 14:48:56 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
1199
1199
                snprintf(bufm, sizeof(bufm), INT64_FORMAT, new->min_value);
1200
1200
                ereport(ERROR,
1201
1201
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1202
 
                                 errmsg("RESTART value (%s) cannot be less than MINVALUE (%s)",
1203
 
                                                bufs, bufm)));
 
1202
                           errmsg("RESTART value (%s) cannot be less than MINVALUE (%s)",
 
1203
                                          bufs, bufm)));
1204
1204
        }
1205
1205
        if (new->last_value > new->max_value)
1206
1206
        {
1211
1211
                snprintf(bufm, sizeof(bufm), INT64_FORMAT, new->max_value);
1212
1212
                ereport(ERROR,
1213
1213
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
1214
 
                          errmsg("RESTART value (%s) cannot be greater than MAXVALUE (%s)",
1215
 
                                         bufs, bufm)));
 
1214
                        errmsg("RESTART value (%s) cannot be greater than MAXVALUE (%s)",
 
1215
                                   bufs, bufm)));
1216
1216
        }
1217
1217
 
1218
1218
        /* CACHE */