When to use "$" in front of a variable and when to use ":"

Offen
#1,143 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
mysql, postgresql, rust, sql, sqlite
Bereich
backend, databases

Rechercherichtung

Start by reading the SQLPage documentation and code paths that handle SUBMIT parameters and query-string variables; the issue does not name specific files or tests. Check whether $ and : are parsed differently and review relevant history around the reported behavior change. Done means determining whether the syntax or behavior changed and documenting or fixing the confirmed discrepancy.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

waiting for response

I had some code that has been running fine for several months that all of a sudden stopped working around 11/28. I think I was incorrectly using "$" in front of passed parameters names instead of ":".

Is it possible that you previously allowed this, but a recent upgrade became stricter? I am hoping that might explain why my unchanged code suddenly stopped working.

So, is it correct that variables passed in a SUBMIT should use ":" and variable passed in a query string should use "$"

Vorherrschende Sprache
Rust
Sterne
2.6k
Forks
175
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
43

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sqlpage/SQLPage

Alle Issues in sqlpage/SQLPage

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.