ServiceStack/ServiceStack.OrmLite — pull request #233 by chrismcv (2013-05-10 12:57:39+00:00)
Title: Support for single schema in search path for table creation

Hi,
I'm currently building a mutli-tenanted service using Postgres and ORMLite, and using CreateTable<> to build the schema when a tenant is created. I'm using SearchPath in the connection string to identify the tenantID, which then maps to the tenant schema.

I found that the "table exists" lookup finds a table if they are in any schema in the db, which meant the tables weren't being created. The fix will only apply when the SearchPath in the connection string has a single schema in it.

Cheers,
Chris

PS (Apologies for previous PR, my VS changed the alignment)