You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if"default"infieldand (((type(field["default"]) ==intandfield["type"] !="int") or (type(field["default"]) ==strandfield["type"] !="str") or (type(field["default"]) ==boolandfield["type"] !="bool") or (type(field["default"]) ==floatandfield["type"] !="float")) or (len(str(field["default"])) >buff["length"])):
300
-
# Returns status code 511 = Invalid default values for Field
301
-
returnself.returner(511)
301
+
# Returns status code 510 = Invalid default values for Field
if"default"infieldand (((type(field["default"]) ==intandfield["type"] !="int") or (type(field["default"]) ==strandfield["type"] !="str") or (type(field["default"]) ==boolandfield["type"] !="bool") or (type(field["default"]) ==floatandfield["type"] !="float")) or (len(str(field["default"])) >buff["length"])):
424
-
# Returns status code 511 = Invalid default values for Field
425
-
returnself.returner(511)
425
+
# Returns status code 510 = Invalid default values for Field
if (field["null"] ==False) and (values["fields"][field["name"]] ==""orvalues["fields"][field["name"]] ==None) and (field["ai"] ==Falseandfield["default"] ==None):
if (field["type"].lower() =="int"andtype(values["fields"][field["name"]]) !=int) or (field["type"] =="float"andtype(values["fields"][field["name"]]) !=float) or (field["type"] =="str"andtype(values["fields"][field["name"]]) !=str) or ((field["type"] =="bool"andtype(values["fields"][field["name"]]) !=bool)):
Copy file name to clipboardexpand all lines: README.md
+2-9
Original file line number
Diff line number
Diff line change
@@ -210,9 +210,8 @@ Since this Database is designed to be as developer friendly as possible, we beli
210
210
| 506 | Cannot create two fields with same name
211
211
| 507 | Cannot have length more than 255 for int and more than 16384 for str
212
212
| 508 | Cannot have bool type in an attributed field
213
-
| 509 | Cannot drop a field already not in table
214
-
| 510 | Unsupported Operation
215
-
| 511 | Invalid Default values for Field
213
+
| 509 | Unsupported Operation
214
+
| 510 | Invalid Default values for Field
216
215
| 600 | Values for a non Null field is not specified
217
216
| 601 | Values provided do not match their types
218
217
| 602 | Values provided are longer than the size allocated
@@ -228,10 +227,4 @@ Since this Database is designed to be as developer friendly as possible, we beli
228
227
229
228
> Key: 1xx is Database Setting Up, 200 is Success, 3xx is Database related error, 404 is not found error for any, 5xx is Table related Error, 6xx is data related error, and 700 is Internal error. (Approximately)
230
229
231
-
License
232
-
----
233
-
234
-
MIT
235
-
236
-
237
230
**Found it useful? Go, install the module and get started!**
0 commit comments