ServiceStack/ServiceStack.OrmLite — pull request #276 by Lee337 (2013-07-12 09:58:30+00:00)
Title: JoinSqlBuilder.ToSQL() function did not cater for postgres table names

The JoinSqlBuilder did not properly generate a SQL script for Postgres. The columns were generated correctly, but the actual base table and join tables were not. eg.

```C#
var jn = new JoinSqlBuilder();
jn = jn.LeftJoin(x => x.StatusId, x => x.Id, x => new { x.Id, x.AccountNo}, x => new { x.Id, x.Description})
.OrderBy(x => x.Description)
.Where(x => x.Id == 1);
Console.Write(jn.ToSql());
```

Used to Produce ->
```SQL
SELECT "avs_transaction"."id","avs_transaction"."account_no","avs_status"."id","avs_status"."description"
FROM AVSTransaction
LEFT OUTER JOIN AVSStatus ON "avs_transaction"."status_id" = "avs_status"."id"
WHERE ("avs_transaction"."id" = 1)
ORDER BY "avs_status"."description" ASC
```

I fixed this with the method OrmLiteConfig.DialectProvider.GetQuotedTableName(). The Generation now produces:
```SQL
SELECT "avs_transaction"."id","avs_transaction"."account_no","avs_status"."id","avs_status"."description"
FROM "avs_transaction"
LEFT OUTER JOIN "avs_status" ON "avs_transaction"."status_id" = "avs_status"."id"
WHERE ("avs_transaction"."id" = 1)
ORDER BY "avs_status"."description" ASC
```