Curly brackets in OrmLite select query throws error
<p>It seems like OrmLite plain select extension method (<code>Select&lt;T&gt;</code>) tries to format the query string (like <code>SelectFmt&lt;T&gt;</code>), and so it throws an error if the query string contains curly brackets, which it assumes are missing arguments.</p>

<p>Example query:</p>

<pre><code>db.Select&lt;Company&gt;("Website='http://www.test.com/?session={123}'");
</code></pre>

<p>Error thrown:</p>

<pre><code>Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
</code></pre>

<p>Ideally, <code>Select&lt;T&gt;</code> should just execute the query verbatim, without any string formatting.</p>

<p>Is it a bug in OrmLite, or something else?!</p>

<p><strong>Update:</strong> Seems like the issue is <a href="https://github.com/ServiceStack/ServiceStack.OrmLite/blob/master/src/ServiceStack.OrmLite/OrmLiteDialectProviderBase.cs#L487" rel="nofollow">here in OrmLiteDialectProviderBase class</a>. It should have a check for params length etc.</p>