« Return to Thread: Using diferent database schemas

Re: Using diferent database schemas

by amsmota :: Rate this Message:

Reply to Author | View in Thread

How about implementing it like this?

if schemaObjectPrefix.hasADot
   dbSchema = everythingUpToAndIncludingTheFirst(".")
   schemaObjectPrefix = everythingFromTheFirstUntilTheEnd(".")
   schemaObjectPrefix.escapeTheCharacters()
else
   continueToDoWhatIsDoingNow
end

That way the backward compatibility is assured.

It is somewhat a ugly solution, thus...

 

 « Return to Thread: Using diferent database schemas