surrealdb / surrealdb.py

SurrealDB SDK for Python
https://surrealdb.com
Apache License 2.0
181 stars 53 forks source link

Fix 'merge' in ws.py #85

Open chrda81 opened 9 months ago

chrda81 commented 9 months ago

Response message "Method not found" is received with error_code "SurrealPermissionException", so I guess the method="change" is obsolete.

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

Type of Change

What does this change do?

This change fixes the 'merge' function.

What is your testing strategy?

Is this related to any issues?

Have you read the Contributing Guidelines?

Wouterkoorn commented 6 months ago

I encountered the same problem when using Surreal.patch. Would you mind checking all methods, and extending this fix for them all? I guess same PR is fine :shrug:

Wouterkoorn commented 6 months ago

I encountered the same problem when using Surreal.patch. Would you mind checking all methods, and extending this fix for them all?~ ~I guess same PR is fine 🤷

I see now that the whole patch method is wrong, and more changes are needed than just changing the method name. I will create separate issue/PR - apologies for the spam

starascendin commented 1 month ago

any updates on this? i'm getting surrealdb.ws.SurrealPermissionException: Method not found for .merge and it's been outstanding issue for the python SDK for years.

igoutta commented 4 weeks ago

Still not done. Neither patch method seems to be found.