CREATE RULE
- Set library version to 2.3
- Set version to 2.3.3
+
+Thu Jul 2 20:30:14 CEST 1998
+
+ - Changed new style db name to allow connection types "tcp" and
+ "unix" only
+
+Tue Jul 7 15:14:14 CEST 1998
+
+ - Fixed some bugs in preproc.y
+ - Set version to 2.3.4
}
| db_prefix server opt_port '/' database_name opt_options
{
- /* new style: esql:postgresql://server[:port][/dbname] */
+ /* new style: :postgresql://server[:port][/dbname] */
if (strncmp($2, "://", 3) != 0)
{
sprintf(errortext, "parse error at or near '%s'", $2);
yyerror(errortext);
}
+
+ if (strncmp($1, "unix", 4) == 0 && strncmp($2, "localhost", 9) != 0)
+ {
+ sprintf(errortext, "unix domain sockets only work on 'localhost'");
+ yyerror(errortext);
+ }
+
+ if (strncmp($1, "unix", 4) != 0 && strncmp($1, "tcp", 3) != 0)
+ {
+ sprintf(errortext, "only protocols 'tcp' and 'unix' are supported");
+ yyerror(errortext);
+ }
$$ = make4_str(make5_str(make1_str("\""), $1, $2, $3, make1_str("/")), $5, $6, make1_str("\""));
}
yyerror(errortext);
}
- if (strcmp($1, "esql") != 0 && strcmp($1, "ecpg") != 0 && strcmp($1, "sql") != 0 && strcmp($1, "isql") != 0 && strcmp($1, "proc") != 0)
+ if (strcmp($1, "tcp") != 0 && strcmp($1, "unix") != 0)
{
sprintf(errortext, "Illegal connection type %s", $1);
yyerror(errortext);