[sqlite] Updating sqlite3 in anaconda

2014-12-26 Thread Mitch
Hi,

 

Can someone point me to the instructions for updating sqlite3 in an anaconda
install? I have the .dll but  I do not know how to create the .pyd file. I
think all I need to do is copy these two files?

 

Thanks

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Fwd: [SpatiaLite-Users] using spatialite on C# VS2008 SP1, Windows7 64 bit

2012-06-13 Thread Mitch Shin
I am trying to use Spatialite in a .NET application using the
System.Data.SQLite provider.

I have tried to load 'libspatialite-2.dll' but an error happens when I
call function "ExecuteStatement(@"SELECT
load_extension('libspatialite-2.dll')", connection);"

The specific error is "Attempted to read or write protected memory.
This is often an indication that other memory is corrupt."

I am using VS2008 SP1, .net Framework 3.5 SP1, Windows7 64bit.

Here's my source code :

class Program
   {
   const string mydb = @"d:\world.sqlite";

   static void Main(string[] args)
   {
   using (SQLiteConnection connection = new
SQLiteConnection(@"Data Source=" + mydb))
   {
   connection.Open();

   ExecuteStatement(@"PRAGMA foreign_keys = ON",
connection);

   ExecuteStatement(@"SELECT
load_extension('libspatialite-2.dll')", connection);

   }
  }
   private static void ExecuteStatement(string statement,
SQLiteConnection connection)
   {
   using (SQLiteCommand command = new
SQLiteCommand(statement, connection))
   {
   command.ExecuteNonQuery();
   }
   }
   }



< error message > :
System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
System.Data.SQLite.SQLiteDataReader.NextResult()
System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd,
CommandBehavior behave)
System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior
behavior)
System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
ConsoleApplication1.Program.ExecuteStatement(String statement,
SQLiteConnection connection) file C:\Users\Mitch\Desktop\TEST
\ConsoleApplication1\ConsoleApplication1\Program.cs: line 36
ConsoleApplication1.Program.Main(String[] args) file C:\Users\Mitch
\Desktop\TEST\ConsoleApplication1\ConsoleApplication1\Program.cs:line
28
System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
System.Threading.ThreadHelper.ThreadStart()System.AccessViolationException: Attempted
to read or write protected memory. This is often an indication that
other memory is corrupt
System.Data.SQLite.UnsafeNativeMethods.sqlite3_step(IntPtr stmt)

--
You received this message because you are subscribed to the Google Groups
"SpatiaLite Users" group.
To post to this group, send email to spatialite-us...@googlegroups.com.
To unsubscribe from this group, send email to
spatialite-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/spatialite-users?hl=en.




-- 
Mitch Shin

C + 82 18 224 7907
E cornhea...@gmail.com
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Protecting the database (revisited)

2003-11-24 Thread Mitch Vincent
I remember someone talking about something that could
be changed at compile time to prevent other sqlite
DLLs from seeing the database file as valid.. I tried
to find the original message but wasn't able to.. Can
someone clue me in? 

I know it wont offer a whole lot of protection but I'm
just wanting to make it a little hard(er) to open the
database if you're not me!

Thanks!

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[sqlite] Select as a column

2003-10-25 Thread Mitch Vincent
Again I find myself spoiled by PostgreSQL and it's
nifty rewriting.. 

I'm trying to do this in SQLite : 

SELECT *,(SELECT count(*) FROM invoice_master WHERE
invoice_master.customer_id = customers.customer_id)
FROM customers as;

It's giving me "no such column: customers.customer_id"
and I understand why. However, for the life of me I
can't think of how to properly re-write that so SQLite
will like it!

Any help at all is appreciated! Thanks!

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]