FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple modification to make dbi case insensitive

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Tue Oct 31, 2006 11:40 pm    Post subject: simple modification to make dbi case insensitive Reply with quote

in row.d
add an import
import std.string;
line 80:
char[] get (int idx) {
return fieldValues[tolower(idx)];
}
line 157:
void addField (char[] name, char[] value, char[] decl, int type) {
fieldNames ~= tolower(name).dup;
Back to top
View user's profile Send private message
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Tue Oct 31, 2006 11:51 pm    Post subject: Reply with quote

i made a mistake :p
the first hacking should be this line 93 :


char[] get (char[] name) {
return fieldValues[getFieldIndex(tolower(name))];
}
Back to top
View user's profile Send private message
jpelcis



Joined: 09 Mar 2006
Posts: 40

PostPosted: Thu Nov 09, 2006 5:40 pm    Post subject: Reply with quote

Thank you for looking, but there won't be any changes to Row.d until the new version is in place with 0.3.0.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group