fix(cassandra): ignore default value if engine skips it in table analyse

This commit is contained in:
Nybkox
2025-02-06 07:06:30 +01:00
parent bb38b93927
commit 73a3e8d498

View File

@@ -47,7 +47,7 @@ const txMatch = (engine, tname, vcolname, nextcol, defaultValue) =>
expect.objectContaining({ expect.objectContaining({
columnName: vcolname, columnName: vcolname,
...(engine.skipNullability ? {} : { notNull: !!defaultValue }), ...(engine.skipNullability ? {} : { notNull: !!defaultValue }),
...(defaultValue ...(defaultValue && !engine.skipDefaultValue
? { defaultValue } ? { defaultValue }
: { : {
dataType: engine.skipStringLength dataType: engine.skipStringLength