We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7ee57 commit c387df2Copy full SHA for c387df2
src/Processor/Expression/Evaluator.php
@@ -236,6 +236,15 @@ public static function getColumnSchema(
236
return self::getColumnTypeFromValue($expr, $scope->parameters[$expr->parameterName]);
237
}
238
239
+ // When MySQL can't figure out a variable column's type
240
+ // it defaults to string
241
+ return new Column\Varchar(10);
242
+
243
+ case \Vimeo\MysqlEngine\Query\Expression\PlaceholderExpression::class:
244
+ if (\array_key_exists($expr->offset, $scope->parameters)) {
245
+ return self::getColumnTypeFromValue($expr, $scope->parameters[$expr->offset]);
246
+ }
247
248
// When MySQL can't figure out a variable column's type
249
// it defaults to string
250
return new Column\Varchar(10);
0 commit comments