Tag

implicit conversion

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 3, 2024 · Frontend Development

Explicit and Implicit Type Conversion in JavaScript and the Use of Boolean

This article explains JavaScript's explicit and implicit type conversions, demonstrates how to use constructors and methods like String(), Number(), Boolean(), toString(), parseInt(), details falsy and truthy values, and shows practical applications of Boolean in conditional statements, array filtering, and TypeScript.

BooleanExplicit ConversionJavaScript
0 likes · 7 min read
Explicit and Implicit Type Conversion in JavaScript and the Use of Boolean
大转转FE
大转转FE
Aug 2, 2024 · Fundamentals

JavaScript Implicit Type Conversions You Didn't Know

This article examines JavaScript’s implicit type conversion mechanisms, illustrating a quirky yet functional code example, detailing conversion rules for symbols, objects, arrays, numbers, booleans, and undefined/null, and highlighting common pitfalls and practical coding tricks.

JSFuckJavaScriptOperators
0 likes · 11 min read
JavaScript Implicit Type Conversions You Didn't Know
Wukong Talks Architecture
Wukong Talks Architecture
Nov 4, 2022 · Databases

Understanding MySQL Implicit Type Conversion and Its Pitfalls

This article explains how MySQL performs implicit type conversion during queries, demonstrates the unexpected results caused by joining mismatched column types, outlines the conversion rules, and provides practical tips to avoid performance degradation and incorrect data retrieval.

DatabaseMySQLSQL
0 likes · 10 min read
Understanding MySQL Implicit Type Conversion and Its Pitfalls
Top Architect
Top Architect
Jul 5, 2021 · Databases

MySQL Implicit Type Conversion Leads to Unexpected Query Results

This article explains how MySQL implicitly converts mismatched column types—such as comparing a VARCHAR column with a numeric literal—into floating‑point numbers, causing seemingly equal values to match, losing index usage, and potentially producing incorrect query results.

Floating PointMySQLType Conversion
0 likes · 7 min read
MySQL Implicit Type Conversion Leads to Unexpected Query Results
Efficient Ops
Efficient Ops
Jun 14, 2021 · Databases

Why Misplaced Quotes in MySQL UPDATE Can Turn All Values to Zero

This article examines how misplaced quotation marks in MySQL UPDATE statements can unintentionally set fields to zero, explains MySQL’s implicit type conversion that causes the condition to always evaluate true, and offers practical steps for detecting and preventing such bugs.

Data RecoveryMySQLSQL
0 likes · 6 min read
Why Misplaced Quotes in MySQL UPDATE Can Turn All Values to Zero
Top Architect
Top Architect
May 25, 2021 · Databases

Why Misplaced Quotes in MySQL UPDATE Cause Columns to Be Set to Zero

The article explains how incorrectly placed double‑quotation marks in MySQL UPDATE statements change the intended string assignment into a boolean comparison that evaluates to 0, leading to all affected rows being updated with zero values, and shows how to detect and avoid this pitfall.

Data RecoveryMySQLQuote Error
0 likes · 6 min read
Why Misplaced Quotes in MySQL UPDATE Cause Columns to Be Set to Zero
Laravel Tech Community
Laravel Tech Community
Mar 22, 2021 · Databases

MySQL Index Not Used Due to Implicit Character Set Conversion and How to Fix It

This article explains why a MySQL join query may ignore an index because of implicit character‑set conversion, demonstrates how to diagnose the issue with EXPLAIN and schema queries, and provides a fix by converting the column to UTF8 in the SQL statement.

MySQLSQLcharacter set
0 likes · 4 min read
MySQL Index Not Used Due to Implicit Character Set Conversion and How to Fix It
macrozheng
macrozheng
Jan 22, 2021 · Databases

Why Misplaced Double Quotes Turn MySQL Updates Into Zeroes

A developer’s production update accidentally set every row’s source_name to 0 because misplaced double‑quotation marks altered the SQL semantics, and the article explains how MySQL interprets such malformed statements and how to recover the data.

MySQLSQLdatabase debugging
0 likes · 6 min read
Why Misplaced Double Quotes Turn MySQL Updates Into Zeroes
Qunar Tech Salon
Qunar Tech Salon
May 10, 2018 · Frontend Development

Understanding JavaScript Type Coercion: Implicit and Explicit Conversions

This article explains JavaScript's type coercion mechanisms, covering both implicit and explicit conversions for strings, numbers, booleans, objects, and symbols, and demonstrates how abstract operations like ToPrimitive, ToString, ToNumber, and ToBoolean affect runtime behavior.

BooleanES5Explicit Conversion
0 likes · 17 min read
Understanding JavaScript Type Coercion: Implicit and Explicit Conversions