[sqlite] Text(3)

2004-03-23 Thread Anabell Chan
Hi all, Firstly, how do I define a string table field with constraints on its size? For example Text(3), string of three characters. Secondly, how is it enforced during updates? Many thanks! Best Regards, Anabell - To

Re: [sqlite] TWS for Windows - link

2004-03-23 Thread Puneet Kishor
borivoj wrote: In an attempt to generate more interest for TWS: You can download windows version on http://unicast.org/archives/000508.html, follow the link "installer" While it is still not a single exe file, it works, and it is so easy to install. I have installed it on a Compact Flash

[sqlite] TWS for Windows - link

2004-03-23 Thread borivoj
In an attempt to generate more interest for TWS: You can download windows version on http://unicast.org/archives/000508.html, follow the link "installer" While it is still not a single exe file, it works, and it is so easy to install. I have installed it on a Compact Flash drive to move it

RE: [sqlite] sqlite and Visual Basic

2004-03-23 Thread Tim Anderson
> -Original Message- > From: Peter Mathijssen [mailto:[EMAIL PROTECTED] > Sent: 23 March 2004 20:10 > To: Greg Obleshchuk; [EMAIL PROTECTED] > Subject: Re: [sqlite] sqlite and Visual Basic > > Greg Obleshchuk schreef: > > You can't use sqlite in a VB app (VB, VB.net, C#) without a >

RE: [sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread Williams, Ken
> -Original Message- > From: Rubens Jr. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 5:00 PM > > I read the OnLine Doc many times and I do not notice this : > "SQLite expects the SQL string that you pass in to be > unchanged until the > SQL has finished executing." > > If

Re: [sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread Rubens Jr.
> > SQLite expects the SQL string that you pass in to be unchanged until > the SQL has finished executing. OK, here is the problem ... I did not knew that :( > If you changes the SQL string before > that, errors can happen, including segfaults. If it worked in 2.8.12, > it was only because you

Re: [sqlite] sqlite_compile() different behaviour in 2.8.12 and 2.8.13

2004-03-23 Thread D. Richard Hipp
Rob Groves wrote: I have noticed that in 2.8.13 sqlite_compile() can return SQLITE_BUSY. In 2.8.12 I only ever saw SQLITE_BUSY come from sqlite_finalize() after sqlite_step() had failed. In 2.8.13 it seems it can come from either. This is not a problem, but what is the intended behaviour?

Re: [sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread D. Richard Hipp
Rubens Jr. wrote: > > I have a global buffer that I use in all querys and to retriev data in my > callback funcs. Example : > > This have worked with version 2.8.12, but when I upgrade to 2.8.13 my > application sometimes show stranges errors like 'near "x" : syntax error' > where x is

[sqlite] sqlite_compile() different behaviour in 2.8.12 and 2.8.13

2004-03-23 Thread Rob Groves
Hi all, I'm working on an update to CppSQLite. I have noticed that in 2.8.13 sqlite_compile() can return SQLITE_BUSY. In 2.8.12 I only ever saw SQLITE_BUSY come from sqlite_finalize() after sqlite_step() had failed. In 2.8.13 it seems it can come from either. This is not a problem, but what is

Re: [sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread Rubens Jr.
> > You're asking for trouble using strcpy() with arbitrary data. Your problem > may be that you're writing beyond the bounds of my_buffer. Instead of > > strcpy (my_buffer, row [0]); > > use > > strncpy (my_buffer, row [0], sizeof(my_buffer) - 1); > my_buffer[sizeof(my_buffer) -

Re: [sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread Derrell . Lipman
"Rubens Jr." <[EMAIL PROTECTED]> writes: > intmy_callback () > { > > strcpy (my_buffer, row [0]); > ... > } > > voidmy_sql (void) > { > ... >strcpy (my_buffer, "SELECT FROM ... WHERE "); >retcode = sqlite_exec (db, my_buffer,

[sqlite] Slowness issues running on SCSI vs. IDE

2004-03-23 Thread Stathy G Touloumis
Hi, I am currently using sqlite version 2.8.4 on RedHat Linux 7.3 on an IBM x.220 - x.345. During a recent testing on the above platforms we discovered a performance issue when using both the perl sqlite module as well as the standard sqlite client. When attempting to perform a large number

[sqlite] Diferent behavior in 2.8.12 and 2.8.13

2004-03-23 Thread Rubens Jr.
Hi ! I have a global buffer that I use in all querys and to retriev data in my callback funcs. Example : charmy_buffer [2]; intmy_callback () { strcpy (my_buffer, row [0]); ... } voidmy_sql (void) { ... strcpy (my_buffer, "SELECT

Re: [sqlite] sqlite and Visual Basic

2004-03-23 Thread Peter Mathijssen
Greg Obleshchuk schreef: Hi Peter, There a sample app with the source which shows how to use it, it's very simple and the app is really all there is to it. One interface does all. There some tips here http://www.sqlite.org/cvstrac/wiki. You can't use sqlite in a VB app (VB, VB.net, C#)

RE: [sqlite] Override conflict resolution behavior in triggers

2004-03-23 Thread Williams, Ken
> -Original Message- > From: Banek, MB Matthew (8773) @ IS [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 1:19 PM > > The problem I'm having is that the trigger does not use IGNORE for conflict > resolution, but uses REPLACE instead, since (as the documentation states) >

[sqlite] Override conflict resolution behavior in triggers

2004-03-23 Thread Banek, MB Matthew (8773) @ IS
I am adding data to a table with the following statement: INSERT OR REPLACE INTO MyTable(col1, col2, col3) VALUES(value1, value2, value3); and the following trigger has been created: CREATE TRIGGER AFTER INSERT ON MyTable BEGIN INSERT OR IGNORE INTO MyOtherTable(col1, col2)

[sqlite] SQLite and Java

2004-03-23 Thread boysen
Hi, I am using SQLite from within Java. Unfortunately, the Java wrapper linked from the SQLite website tends to be rather slow when returning large resultsets from a query. Has anybody a handy solution for / experiences with that? Thanks, Bo

[sqlite] sqlite and Visual Basic

2004-03-23 Thread Peter Mathijssen
Hello, I discovered sqlite last week and want to use it in a Visual Basic program. I also found the SQLite wrapper for Visual Basic from http://www.ag-software.com/sqlite.aspx. Greg Obleshchuck even, after a request, updated it's driver to use the latest sqlite version. Are there any visual

[sqlite] SQLite BLOB

2004-03-23 Thread Lay AndrĂ¡s
Hello! I don't understand why do some people have a bad time with conversions, if they want to store BLOB in SQLite. The official FAQ also recommends that one should use any kind of conversion to convert binary data to a format that is suitable for SQLite: http://www.sqlite.org/faq.html#q12