Erel, what is the reason to lowercase the database field names in ExecuteMap?
I was searching for an error in my code until I used Log for my map object only to see that my key is "list" instead of "LIST".
I am just asking if there is any reason to do so provided that I use uppercase fields when designing databases(no matter MySQL, SQLite or anything else) because it's easier to read them(at least for me).
Of course I can pass the lowercase value of my name but I wondered why is this?
Edit: I have another question. By returning "Null" in various occassions, what is the best way to get my results? I've used:
Code:
txtFileName.Text = values.Get("list")
txtNotes.Text = values.Get("notes")
This crashes when my database field is empty. I had to apply the following change to DBUtils in order to make it return a blank string which won't crash my application.
Code:
Dim val As Object
For i = 0 To cur.ColumnCount - 1
val = cur.GetString2(i)
If(val = Null) Then
val = ""
End If
res.Put(cur.GetColumnName(i).ToLowerCase, val)
Next
Unfortunately, it won't work for INTEGER.