Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SQLITE: remove case sensitive of column type name.
SQLITE: remove case sensitive of column type name. [message #26665] Tue, 18 May 2010 17:25 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello all,

I propose to remove case sensitive of column type name.
I prepared a little patch for this:

Index: uppsrc/plugin/sqlite3/Sqlite3upp.cpp
===================================================================
--- uppsrc/plugin/sqlite3/Sqlite3upp.cpp	(revision 2404)
+++ uppsrc/plugin/sqlite3/Sqlite3upp.cpp	(working copy)
@@ -245,7 +245,8 @@
 	}
 
 	ASSERT(got_row_data);
-	String coltype = sqlite3_column_decltype(current_stmt,i);
+	// Remove case sensitive
+	String coltype = ToLower(sqlite3_column_decltype(current_stmt,i));
 	switch (sqlite3_column_type(current_stmt,i)) {
 		case SQLITE_INTEGER:
 			f = sqlite3_column_int64(current_stmt,i);


It is useful when I create a table
"CREATE TABLE Tab1(col1 DATETIME)".
When i execute a select statement, the conversion in Time is not correct.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Oracle: How can use standard OCI without install oracle client?
Next Topic: Column type for SQLite
Goto Forum:
  


Current Time: Fri Apr 19 17:04:23 CEST 2024

Total time taken to generate the page: 0.05692 seconds