File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313 *
1414 *
1515 * IDENTIFICATION
16- * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.221 2009/04/15 21:36:12 alvherre Exp $
16+ * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.222 2009/04/23 17:39:21 tgl Exp $
1717 *
1818 *-------------------------------------------------------------------------
1919 */
@@ -387,12 +387,12 @@ createdb(const CreatedbStmt *stmt)
387387 */
388388 if (strcmp (dbtemplate , "template0" ) != 0 )
389389 {
390- if (strcmp (dbcollate , src_collate ))
390+ if (strcmp (dbcollate , src_collate ) != 0 )
391391 ereport (ERROR ,
392392 (errmsg ("new collation is incompatible with the collation of the template database (%s)" , src_collate ),
393393 errhint ("Use the same collation as in the template database, or use template0 as template." )));
394394
395- if (strcmp (dbctype , src_ctype ))
395+ if (strcmp (dbctype , src_ctype ) != 0 )
396396 ereport (ERROR ,
397397 (errmsg ("new LC_CTYPE is incompatible with LC_CTYPE of the template database (%s)" , src_ctype ),
398398 errhint ("Use the same LC_CTYPE as in the template database, or use template0 as template." )));
You can’t perform that action at this time.
0 commit comments