I did the original conversion of the Mono.Data.SqliteClient to
Community.Data.SqliteClient. I looked a few weeks ago and noted
that there still wasn't a Community.Data.SQLite. Is this something
that you think would benefit the C#Sqlite community? I have a
version based on Mono.Data.SQLite (the newer version) that I'm
currently testing that supports both DB and IDB and a .NET 3.5
framework target. I'd be willing to contribute that back to the
community also if you think it would be useful.
Let me know and it'll be a weekend project for me.
Thanks
Teravus
On Tue, Jul 27, 2010 at 8:03 PM, lucwuyts <luc....@a-d-e.net> wrote:
> in System.Data.SQLite i have used decimal parameters
>
> This is not supported in c#_sqlite
>
> So i tried adding this to the sqliteCommand class
>
> else if (ptype.Equals(typeof(Decimal)))
> {
> string val = param.Value.ToString();
> err =
> (SqliteError)Sqlite3.sqlite3_bind_text(pStmt, i, val , val.Length ,
> null );
> }
>
> but the values are zero when i look in the database.
> I thought the internal representation of all fields was always text ?
>
> Any idea?
>
Are you saying you want it under the Community.Data.SqliteClient namespace?
See the discussion thread "Suggestions wanted for better organization of
the project"
here
Anyone else care if we make this change?
Noah
On 7/28/2010 8:53 AM, Teravus Ovares wrote:
> No, I'm just saying that I'm working on a version based on
> Mono.Data.Sqlite. The original was based off of
> Mono.Data.SQLiteClient and when it went in there was some frustration
> noted from the mono community about it being based off of
> Mono.Data.SQLiteClient.
>
> Community.CsharpSqlite.SQLiteClient and Community.CSharpSqlite.Sqlite
> works for me if that's your preferred namespace. The letter was not
> in regards to the namespace.
>
> The second paragraph of http://www.mono-project.com/SQLite explains
> the difference in more detail.
>
> Regards
>
> Teravus
If the database file is empty, the new database will be encrypted. If
the database file exists, it will be decoded with the key supplied. If
key is incorrect, sqlite will fail to find the needed structures in
the decoded pages.
However, if you are expecting to encrypt connections to the ado
provider, this is not the purpose of the crypto routines. This
routines only encrypt the resulting file/memory pages.
--
-- Use of a keyboard or mouse may be linked to serious injuries or disorders.
diego dot torres at gmail dot com - Madrid / Spain