Different between numbers and Chars
Posted: Wed Feb 05, 2020 10:51 pm
Dear all,
it is really strange...
I have a Maria DB (UTF-8). In the Database i have stored a simple table (T_USER) with test datas in a text Field:
This is working with my simple script:
UserID: 1234
Passwort: 1234
And this is not working:
UserID: 1234
Passwort: 1234a
If I check step by step the results are:
put username_passwort -> 1234 -> OK
put "1234a" into sql_daten_User_ergebnis instead the SQL Select -> OK
It is only the happens that I get user_invalid when a char is in the password. But why????
Regards
Stef
it is really strange...
I have a Maria DB (UTF-8). In the Database i have stored a simple table (T_USER) with test datas in a text Field:
This is working with my simple script:
UserID: 1234
Passwort: 1234
And this is not working:
UserID: 1234
Passwort: 1234a
Code: Select all
### Create SELECT to get the password
put "SELECT passwort from T_USER where UserID like " & username_client into sql_daten_User
put revDataFromQuery(tab,return,dbid,sql_daten_User) into sql_daten_User_ergebnis
### Check if Password (sql_daten_User_ergebnis ) is the same as the var username_passwort
switch
case sql_daten_User_ergebnis is username_passwort
put "user_valid" into user_validation
break
case sql_daten_User_ergebnis is not username_passwort
put "user_invalid" into user_validation
break
end switch
return user_validation
If I check step by step the results are:
put username_passwort -> 1234 -> OK
put "1234a" into sql_daten_User_ergebnis instead the SQL Select -> OK
It is only the happens that I get user_invalid when a char is in the password. But why????
Regards
Stef